Skip to main content
Question

Not show when boolean is active

  • January 6, 2023
  • 6 replies
  • 2280 views

MATTELET_Bruno_DES_UUD

Hello,

I’m actually working on a DSM and I have an issue, or maybe I’m not tackling the problem the right way.

I would like to remove, or to don’t show, a part of the component when the boolean is TRUE.

How can I do that ?

So in this case, when the default is selected I show the bar below the number. And when it’s the last item, I want to hide this bar.

I want to have a boolean that show or hide this bar. But the boolean when it’s true, show and when it’s false, hide. So I can’t hide when it’s true …

At the moment the only solution is that I call the switch “Not last item” but this can be confusing for people of my team.

Thanks!

This topic has been closed for comments

6 replies

MATTELET_Bruno_DES_UUD

I have issues sharing picture but here is a link for them :

ImgBB

tank666
  • 4854 replies
  • January 6, 2023

Instead of a boolean component property, you can use variants with boolean properties.


MATTELET_Bruno_DES_UUD

Thanks but in that way I need to duplicate the instances …


tank666
  • 4854 replies
  • January 6, 2023

If I understood you correctly what you meant, then yes, you need to create the required number of combinations of variants for all your cases.

By the way, you can also assemble such a construct with a boolean component property, and everything will work as expected:
line-structure


MATTELET_Bruno_DES_UUD

Damn, thats genius! Thanks a lot !


  • 0 replies
  • February 8, 2023

This topic was automatically closed 30 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