Skip to main content

Can't set a boolean to control the value of a boolean


Phil_Larsen

A property boolean on a component can be assigned a boolean variable.
If there are multiple variants of a component, I can assign a boolean, just not the layer visibility property.

This topic has been closed for comments

3 replies

  • 1 reply
  • July 5, 2023

Plus +10 to this idea!
Imagine a scenario where you have two distinct styles for all your components: solid and outline. Now, suppose you desire to transform the entire design into an outline version with a simple toggle of a Boolean variable. This capability becomes absolutely essential in such situations.


atien
Figmate
  • Figmate
  • 14 replies
  • July 5, 2023

Hey @Phil_Larsen,

Thanks for reaching out about this!

It looks like this might be a feature/UI limitation specific to the visibility property. To bind a boolean variable for visibility, you can try the entry point on the layer property for your desired layer to hide.

Right clicking the 👁️ icon will pop open the variable selection modal, you can bind the boolean variable to the visibility toggle. It’s important to note that this will override the component property boolean toggle for visibility.


  • 0 replies
  • October 3, 2023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings