Disable a tab when false


Hi,


I don't know why but i cannot disable a tab when i have a local variable as False.

i put a property (Style), as "If(Hide, "Display: none", "")"

The text disapears but the tab is shown. She is empty though... but i don't want the tab to appear at all when it's false.


What can i do?

André Portugal wrote:


Hi,


I don't know why but i cannot disable a tab when i have a local variable as False.

i put a property (Style), as "If(Hide, "Display: none", "")"

The text disapears but the tab is shown. She is empty though... but i don't want the tab to appear at all when it's false.


What can i do?

Hi Andre Portugal,

Can you share a  sample demo link or some screenshot of action, so that folks here can hep you.

Also is it a mobile app or web

Thanks


Hi André Portugal,

I assume you are using the Silk UI tabs?

Maybe this post can help you: https://www.outsystems.com/forums/discussion/16278/silk-ui-tabs/

Regards,

Solution

Hello André,

Basically, if you're doing an if on the css around the text, the tab will display anyway. The best way to hide it is putting a widget if around the text showing/hidding the text following the value of the variable (like described on the comment above). Like that you'll avoid showing the empty tab.

Regards,

Solution