+1
Respuestas
State Attribute
I have a question about the state attribute.
Let's say I have several sibling objects and they all use the same class. A style is defined in the class (for example, text color). Can you define different text color for the object that has state=on? Or do you have define text color in the object and then change it in the action that changes the state?
Let's say I have several sibling objects and they all use the same class. A style is defined in the class (for example, text color). Can you define different text color for the object that has state=on? Or do you have define text color in the object and then change it in the action that changes the state?
Servicio de atención al cliente por UserEcho
However you could probably achieve this scenario using wire variables. If you set a variable on the class for text color, your action can define an if statement that will assign the variable depending on the currently displaying object.