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…
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…
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) …
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…
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…
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…
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…
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…
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…
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 …
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);…
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…
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,…
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?
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' …