Skip to main content

Conditional tabs

Conditional tabs are tabs that are displayed only if a condition is met. The conditions are an array of conditions. Conditions are evaluated in order. The first condition that evaluates to true will render its subgrid. If no condition evaluates to true, the last subgrid will be rendered.


The following section details Conditional tabs component's specific settings. For more details on the App editor, check the dedicated documentation or the App editor Quickstart:

Controls

This component can be controlled by frontend scripts using these functions:

NameParametersDescriptionExample
setTabid: string, index:numberSet the current tab.setTab('a',1)

Conditional tabs configuration

NameTypeConnectableTemplatableDefaultDescription
Conditionsboolean[]falsefalsefalseThe conditions that will be evaluated.

Outputs

NameTypeDescription
conditionsboolean[]The conditions evaluation
selectedConditionIndexnumberThe index of the selected condition

Event handler

The conditional tab component has the following event handler:

  • onTabChange: Trigger one or more runnables when the user changes the tab.