Questions tagged [class-names]
69 questions
1
vote
2 answers
Java - class name starts with numbers
I have done my HW already but our instructor wants us to submit our HWs as yourID_BFS_DFS.java. And I can't do that, it returns error. I know that numbers are not Java letters and it is illegal (I checked other answers already) but still I want to…
![](../../users/profiles/6095563.webp)
WhoCares
- 105
- 3
- 15
1
vote
2 answers
Set class dynamically using classNames module not working
thanks in advance for taking a look at this. I am attempting to set the class on page load of my element to pending, and then onClick, remove the pending class and add the completed class:
Currently, the state of completed and pending change…
![](../../users/profiles/6215937.webp)
sivs
- 253
- 1
- 2
- 8
1
vote
0 answers
menuIcon is not defined in react app when loading scss file
I have an app using an import statement to load scss file. it builds fine but when loading in browser it errors
VM148 transformed.js:19714 Uncaught ReferenceError: menuIcon is not defined
at Sidebar.render (VM148 transformed.js:19714)
…
![](../../users/profiles/1164789.webp)
shorif2000
- 2,050
- 8
- 54
- 110
1
vote
2 answers
How to check if all class names of divs in the DOM have a specific string with vanilla Javascript?
I have the following markup:
How can I check if a div in the DOM has a class name that contains the text hidden? The desired output would be…
![](../../users/profiles/2127769.webp)
Ralph David Abernathy
- 4,472
- 7
- 42
- 67
1
vote
1 answer
Working with css classnames and react-virtualized or react-select
So i'm trying to integrate both of this modules into my project and i have difficulties in dealing with its CSS part.
My project is using postcss to turn my own css files into "compiled" css files with added classnames to each of them.
Both…
![](../../users/profiles/6162048.webp)
Slava Balabanov
- 97
- 1
- 8
1
vote
1 answer
Regex for replacing class names throughout codebase in Atom Editor
I've been struggling with this for the last few days. I apologize if this is a duplicate, I wasn't able to find what I needed when searching for this particular question.
I have class names like the following:
class="block underline…
![](../../users/profiles/1461204.webp)
souporserious
- 1,914
- 1
- 22
- 43
1
vote
0 answers
Braintree PHP SDK class names confusions
I have started using Braintree php sdk by requiring it via composer. It is working fine. It has classes like:
Braintree_Configuration, Braintree_ClientToken etc.
However, I was looking into the source code in vendor/braintree and I could not find…
![](../../users/profiles/2563803.webp)
Mubashar Abbas
- 4,346
- 2
- 32
- 42
1
vote
1 answer
Locating elements without a specific class name
This is in the same vein as this question I asked before - Watir webdriver; counting elements with changing class names. I was able to add the specific number of elements based on using the class name asset-card selectable.
Currently, I am looking…
![](../../users/profiles/4190664.webp)
kmancusi
- 541
- 2
- 13
1
vote
0 answers
Use PostCSS with react components
I am using classNames for styling my component in react, but if i use some components like react-select then how to import styles react-select/dist/react-select.min.css and use it inside my component.
import React, { Component } from 'react';
import…
![](../../users/profiles/1439321.webp)
Vikramaditya
- 4,500
- 4
- 29
- 43
1
vote
1 answer
Organizing Rails files within app folder for api
All setups I've found use the following folder structure
/app
/controllers
/api
/v1
/views
/api
/v1
/models
This is ok, I guess. But I am trying to get a structure that looks like
/app
/api
/v1
/controllers
/views
…
![](../../users/profiles/972789.webp)
Nick Ginanto
- 26,414
- 39
- 123
- 214
1
vote
2 answers
How can I compare an object with the parent class in php?
I want to compare the class of an object with the current class, and in inherited methods to refer to the parent class. This is the only way I can think of doing it:
class foo { function compare($obj) { return get_class($obj) == get_class(new self);…
![](../../users/profiles/191090.webp)
peterjwest
- 3,738
- 2
- 28
- 44
1
vote
2 answers
Array of Class Names AS3
I've got several movieclips in my FLA library with classnames applied. In my AS package file, I've got an array of those classnames. What I'd like to do is display the movieclips on stage as follows:
Upon SWF load, Array[0] displays
When NEXT…
![](../../users/profiles/1535415.webp)
M Cowan
- 13
- 3
0
votes
1 answer
Class Name in Windows Forms
I wonder about dynamically changing of class name in .NET application. For example WindowsForms10.SysTreeView32.app.0.19fd5c7. The last string "19fd5c7" would change, but I don't know what makes it changing. Is it the version, the GUI modification,…
![](../../users/profiles/405472.webp)
oliverwood
- 233
- 3
- 5
- 11
0
votes
5 answers
jQuery period in class name stored in var
I have this code:
var imgId = this.id; //file1.jpg
and this:
$('.img\\' + imgId).remove();
So the problem is, i cant escape the '.' because its in the var, not before. What can i do?
![](../../users/profiles/478144.webp)
benhowdle89
- 34,076
- 63
- 192
- 314
0
votes
1 answer
How to add a class name in every row without effect the rest of the rows?
How to add a class name in every row without effect the rest of the rows
import React, { useState } from 'react';
import './testEfect.css';
const Test = () => {
const arrayTest = [
{
name: '11',
id: '11'
…
![](../../users/profiles/13952821.webp)
mohamed maher
- 3
- 2