Classname may refer to classes in scripting languages and markup languages. Typically, a class denotes a certain part of the application which can be manipulated.
Questions tagged [classname]
620 questions
7
votes
3 answers
Resolving a class name conflict in a Rails application
I have been building a Rails application that performs accounting functionality. As part of this, I have a model with the class name Transaction. So far so good, I have been building this functionality for a month or so, and everything is working as…

aaronrussell
- 9,389
- 5
- 38
- 62
7
votes
3 answers
6
votes
2 answers
C# Retrieving Classname in a static method
Example:
namespace MyProgram.Testing
{
public class Test1
{
public void TestMethod()
{
String actualType = this.GetType().FullName.ToString();
return;
}
public static String…

copystart
- 107
- 1
- 5
6
votes
3 answers
Is the controller name derived from the class name?
This is a newbie question...
I am looking at the default asp.net mvc3 project and noticed that there is a controller called:
public class AccountController : Controller
I looked throughout the code and couldn't find a place that specified…

rkw
- 7,287
- 4
- 26
- 39
6
votes
3 answers
Customize Twitter Bootstrap Classnames
http://getbootstrap.com/customize/
Above link, customizes Bootstrap's components, Less variables, and jQuery plugins to get your very own version.
I am wondering if it's possible to customize bootstrap by adding prefixes to it's classes, for…

alyssaeliyah
- 2,214
- 6
- 33
- 80
6
votes
2 answers
Namespace & Class name collide
What is the best practice when naming a class same as the end of a namespace?
Example:
Successful.Domain.Resource {
public class Resource {}
}
Successful.Data.Resource {
public class Resources {}
}
If i want to use the…
user1973285
6
votes
1 answer
Set dynamically className on Backbone view render
I've a Backbone view where the className is set dynamically with a function:
app.Views.ItemRequestView = Backbone.View.extend({
tagName : 'tr',
className : function(){
var classRow = '';
if(this.model.getState() ==…

user2568596
- 63
- 1
- 3
6
votes
4 answers
Get Namespace, classname from a dll in C# 2.0
I will get dll's dynamically. I need to load the dll and get the namespace, classname to invoke a method (the method name is static it will be always "OnStart()").
Basically I need to run a method by loading the dll. Can somebody help!!!.

balaji
- 61
- 1
- 1
- 2
6
votes
4 answers
JavaScript - Replacing "no-js" class with "js" class not working?
I placed a class in my element called "no-js". This indicates that the user isn't using javascript, (whether it be disabled or blocked). And then, in a script file I created, I want to revoke "no-js" and inject "js" so that I can determine if…

Jace Cotton
- 2,004
- 1
- 21
- 38
5
votes
2 answers
Find out the class name of an apk
I am developing an app that should be able to launch another app installed on the phone. Currently, I am successful with launching facebook as the ActivityPackage and ActivityClass is known. I want to launch other apps such as twitter, gplus, gtalk,…

borislemke
- 8,446
- 5
- 41
- 54
5
votes
2 answers
Conditionally setting className based on a state variable in a React functional component
I'm trying to change the appearance of a button based on if that element exists in state. It is a multiple selection selection. So setAnswer is called, which calls addAnswer. I then want to set the className based on whether the element is in state…

Jerry Garcia
- 63
- 1
- 5
5
votes
4 answers
Centering text on mobile only
I'm pretty new to advanced CSS. I have a custom heading section which i want to make centered on mobile only. I have added a class name and the following code but nothings happened.
.mobile-text {
text-align: right;
}
@media (max-device-width:…

Connie
- 47
- 1
- 1
- 3
5
votes
4 answers
How to add className to list from map array depending on object value
I am trying to add className value to list items. I map through an array of objects, and depending on the value of 'name' in the object, a differenct class would be added.
Specifically, I am trying to make a message app, if the user is 'You', the…

jesusWalks
- 355
- 4
- 16
5
votes
3 answers
custom className semantic ui react
I was hoping to do something like this:
But no matter if I add a class name this is all that shows up:
How do I make my own className. I would like to use the divider…

Stephen Phillips
- 641
- 10
- 26
5
votes
2 answers
Storing the class name in class variable without typing the name of the class?
In an instance method of a python class, I know that we can get the class name via self.__class__.__name__
However, I'd like to store the name of a class in a class variable, without coding the name of the class.
I know I can do this to get a…

HippoMan
- 2,119
- 2
- 25
- 48