Does anyone know if it is possible to set the variant of a component from a value of a local variable?
For example I would like to select the disabled variant of a dropdown if a value of a variable is true.
Thanks
Does anyone know if it is possible to set the variant of a component from a value of a local variable?
For example I would like to select the disabled variant of a dropdown if a value of a variable is true.
Thanks
Hey! So sorry for the delay in response to this – I checked in with our tech quality team, and it sounds like you can control a variant from a variable with a string variable. You would have to update the variable’s string to match the variants layer name and bind the variable to the instances layer.
They also advised that you can probably check with a conditional, and then if the boolean property is true or false, set the variable to the variants value you want to show.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.