Hi Everyone,
I have an primary interface page and in that there are different tabs calling other interfaces. In primary interface page there is a button and on the click of that button all the tabs present in primary interface should be disabled. Can any one please help me how to achieve this?
Discussion posts and replies are publicly visible
in the top-level interface declare a local variable along the lines of "local!disableTabs: false()," -- and use that variable to set the active status of the tabs, in such a way that they behave normally when the value is false (i assume you're talking about tabs you manually create within your interface, at least).
Then, pass this local variable in to the sub interface through a new rule input you add to the sub-interface. There, upon the button click in question, in addition to whatever else the button does, set the value of that rule input to true().
Thank you Mike, the tabs are created using cardlayout inside columns layout. and there is no disable parameter.
Hello shubhamy0005,
You can disable the dynamic link in-case you are using it for the tab selection. you can achieve it using a simple if() condition.
As Konduru mentioned already - you would simply disable the links in the cards, and i would recommend also changing the colors of the cards to something slightly different that makes it apparent to the user that their state has changed (like gray or a more pale version of their original color, etc).
The easiest way to handle this work, would probably be to encapsulate your "tab card" interface snippet into its own interface rule, where you can pass in a "disabled" parameter and then add the logic in the different places within that rule to accomplish what you want to have happen when the parameter value is changed.