I would like to create several tab sets. I would like to use conditional rendering to make one tab set disappear upon rendering the other. Is this possible? If so; how? Can someone help?
Is there a way to use conditional rendering to: 'once a component renders, have another component di
Read Zach’s response at the end of this post Run code when tab loads
Currently no, the tabshow event is only fired when subsequent tabs are loaded, but not on initial load of the default tab. In the next major release of Skuid, it the tabshow event will be fired for all tab loads, including the load of the default tab. Also, sneak preview, in the next release it will be possible to run a sequence of actions when a tab is first loaded and/or whenever a tab is shown.
Is this what you want?
If you have two tabsets, this can easily be accomplished with an arbitrary boolean field on a model. Conditionally render based on whether that field is true or not. Whatever way you have to select which tabset should be rendered should toggle that boolean on or off.
You can use basically any field, just leave it in its own model, designed to have 0 rows, create new and load on pageload. If you make sure that you never save the model, your data won’t change in salesforce.
Thanks, I’ll try it.