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
-1
votes
2 answers

Why can't I enter the code? mui tag conditional

Why can't I use boolean? I want to check whether I am an admin or not. and hide the button or disable the button const Authenticate = useSelector(userSelector) let check :boolean = true;
okmmy123456
  • 45
  • 1
  • 9
-1
votes
1 answer

How can i delete width in react - bootstrap class?

I'm doing an internet-store, and i have a problem with top panel. I tried everything to fix it, but only when i change class row in dev tools i can get result. row>* { flex-shrink: 0; width: 100%; max-width: 100%; padding-right:…
-1
votes
2 answers

How can I dynamically update className with React js?

I have a Collection component and when I click on a div in this component, I want to change both the className of the Collection component and the className of the first sibling component after the Collection component. With UseState, I could only…
-1
votes
1 answer

React JS update classes when useState is updated

I am trying to make a carousel slider in react. Now am I checking the state and if the state is 2 for example add the tailwind class -left-1/3. Now that is working all fine. But only I have to click twice before it adds the first switch case. Does…
Mike
  • 71
  • 2
  • 8
-1
votes
1 answer

Is there another way to give id or class name when using CSS Module in React?

Whenever I import "style.module.css" then I have to give each component a class name like this: classname={styles.className} Code Example: import styles from './Header.module.scss' const Header = () => { return(
-1
votes
1 answer

How do i find parent class name with Selenium - ChromeDriver

im trying to find the parent class name on a element, but i don't know how i find it. Here is a picture of what im trying to find the parent class name of. What do i need to press to find the parent class name? I can send the link to the website…
-1
votes
2 answers

Selenium python, use css to select only two class

Suppose I have an HTML that looks like this:
Right!
Wrong!
Right!
If I try to locate the first and third div, using…
James Deen
  • 43
  • 6
-1
votes
1 answer

React doesn't read css when the classname is string

I picked up a react project that uses className={css.someStyle} format to link css to components. The problem is that I installed a package and I cannot get any css from it because my app only takes className how I showed you above, and the package,…
Bogos Robert
  • 193
  • 2
  • 9
-1
votes
2 answers

Why can't I find element using class name?

I am trying to find this button and click on it. But I get this error: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".sqdOP L3NKy y3zKF "} …
user4248
  • 1
  • 1
-1
votes
1 answer

Try GetElementsByClassName

try js ref_doc_getelementsbyClassName "Uncaught TypeError: Cannot set property 'value' of null " This HTML code This JS code function inputtest() { …
Meme
  • 3
  • 1
-1
votes
2 answers

How to re-write the css class in React JS?

For example, I have a css class in style sheet named 'track-your-order' now on some event trigger I have to update whatever in 'track-your-order' is and apply that updated class in same div. I am not meant to toggle it but I meant to update or…
Arslan Ali
  • 9
  • 1
  • 1
-1
votes
1 answer

REACT JS - increment component className?

have just a question if it's possible to increment className in React JS??? to do something like that : /* in first file */ const rowCount = 68; class PhotosItem extends Component { constructor() { super(); this.list =…
Guss411
  • 26
  • 3
-1
votes
2 answers

Invalid prop `className` of type `object` supplied to `Card`, expected `string`

I'm currently working on a React web app using Material-UI. I've been experimenting with the Card component to see how it works. I am currently running the following code: import React from 'react'; import Card from '@material-ui/core/Card'; import…
Sean
  • 592
  • 4
  • 9
  • 19
-1
votes
2 answers

Adding a classname to td (column) of the datatable

I want to add a class to my tags in my table. Here is my code var dtVouchers = $('#tblVouchers').DataTable(); dtVouchers.row.add([ ''+text+'', ''+data._voucherCode+'', …
ertan2002
  • 1,458
  • 1
  • 32
  • 68
-1
votes
1 answer

Protractor, how to get an element if others classes have the same classname

I'm using Protractor with Cucumber for my tests, but I can't get an element cause the classname is the same of others classes and it don't have other attribute. How can i get this element? The element is: "tileGrid content". I can't use xpath cause…
Spicchio
  • 126
  • 13