Questions tagged [classname]

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.

620 questions
10
votes
2 answers

How to change the style of an ant.design 'Table' component?

I have a table at the moment and I want to change the column headers of the tables to a different color. link to table Things I've tried: ...
HunterLiu
  • 781
  • 3
  • 6
  • 20
10
votes
6 answers

React-Native styling using CSS stylesheets and class names

I've just started working on a react-native app. The official docs suggest to use JavaScript objects to create styles for your components, like so, Blah Blah const style = { text: { fontSize: 20 …
rodiwa
  • 1,690
  • 2
  • 17
  • 35
10
votes
7 answers

Should I use (otherwise optimal) class names that conflict with the .NET BCL's names?

This situation probably is not entirely uncommon to some of you: you have some functionality to put in a class but the perfect name (*) for that class is taken by one of the classes in the System namespace or other namespace/class that's not yours…
Camilo Martin
  • 37,236
  • 20
  • 111
  • 154
10
votes
5 answers

Angular-UI Tabs: add class to a specific tab

I want to create the following tabs with Angular UI: (source: gyazo.com) So, I'm adding the styles based on Bootstap's class names/markup: .nav-tabs > li.new > a { padding-top: 5px; } .nav-tabs > .new > a:after { content: "NEW"; color:…
pavek
  • 307
  • 2
  • 4
  • 14
9
votes
2 answers

Testing react components and getting elements by className

Im wondering if putting new class name into html component only for readability and tests is ok. Let's say we have this situation: class ComponentOne extends React.Component { render(){
mhan
  • 121
  • 1
  • 2
  • 5
9
votes
4 answers

HTML5 Compliant - Trailing Space in Class Attribute

I know that technically HTML5 is a 'living spec' but I'm wondering if it's compliant to have trailing spaces inside of a class name. I didn't see any reference to this scenario in the spec, but one of my teammates said it was invalid. Maybe I missed…
SC_Chupacabra
  • 12,907
  • 1
  • 15
  • 21
9
votes
4 answers

Javascript: Check if classname exists

No Result!
First Previous 
user2276965
  • 93
  • 1
  • 1
  • 4
8
votes
4 answers

object.className or object.getAttribute("className/class")?

Between both those : Javascript function setCss(object, css) { return (object.className = css); } function getCss(object, css) { return object.className; } Or function getCss2(object) { if (object.getAttribute("className")) { …
Kraz
  • 6,910
  • 6
  • 42
  • 70
8
votes
7 answers

How to check className in a switch statement when an element has multiple classes

In the example below I just want the option clicked to display in an alert. I'm trying to use a switch statement to determine what class was clicked. My example would work if my divs did not each contain more than one class. I tried using…
basement
  • 718
  • 8
  • 15
8
votes
1 answer

data member with the class name

The standard says, "A member of a class T cannot use T as its name if the member is a static data member, a member function, a member type, a member template, an enumerator of an unscoped enumeration, a member of a member anonymous union. However,…
8
votes
5 answers

How can I find a Qt metaobject instance from a class name?

Is there a way to find the QMetaObject instance of a class, given the class name? what I like to do is to load objects from disk, but for this to happen, I need a way to retrieve a QMetaObject instance using the name of a class, in order to use the…
axilmar
  • 836
  • 1
  • 13
  • 17
8
votes
5 answers

Class name convention in java

What is the naming convention of classes in java, for example should all classes be in upper case like MYCLASS.java ? as some classes like com.sun.org.apache.bcel.internal.generic. ANEWARRAY. can be found in Sun's library as well Note: I have read…
ankit
  • 4,919
  • 7
  • 38
  • 63
8
votes
2 answers

The C# namespace and class/sub-class naming conventions when the top namespace contains the base class and inner namespaces contain sub-classes

I'm trying to design a class library for a particular engineering application and I'm trying to ensure that my class & namespace naming conventions make sense. I have the following situation: namespace Vehicle{ class Wheel{...} //base class…
TJ_Fischer
  • 15,881
  • 2
  • 23
  • 20
7
votes
3 answers

How to dynamically add and remove class on click with React?

I have a list of links. I'm adding a class on click, called "is-active". At the same time, I would like to remove all the existing "is-active"s except for on the link I clicked on. There may only be one element with the class "is-active" as that…
Ronald Langeveld
  • 694
  • 1
  • 8
  • 23
7
votes
5 answers

Class does exist but is not found

I am absolutely baffled bu this. Here's my CSS: $(window).load(function(){ $('.zichtbaar').removeClass('zichtbaar').addClass('verborgen'); $('#zoekitem').focus(); $('.letter').on('click',…
johannes
  • 1,270
  • 12
  • 19
1 2
3
41 42