The tab to default to on first render. If navigation is used, the navigation value will override the defaultTab value.
name
Attribute
name
Type
string
Default
'tab'
Required
false
Description
The name of the tab set. This is similar to an id. If there are multiple tab sets on the same page make sure their names are all unique.
navigation
Attribute
navigation
Type
"fragment" | "query"
Default
undefined
Required
false
Description
Set this attribute to utilize the URL to control tab navigation. ‘fragment’ will put the tab id in behind a hash (#). ‘query’ will put the tab id in a query param with the ‘name’ as the key. The tab specified in the URL will also be shown on initial load.
Fired after the old tab leaves, and the new tab is shown. The ‘tab’ param will contain the ‘tab’ attribute of the newly revealed tab.
false
certaraTabsWillChange
Fired when a tab is about to show. This event is fired at the same time certaraTabsWillLeave is fired, but with the ‘tab’ param as the ‘tab’ attribute of the new tab.
false
certaraTabsWillLeave
Event that’s fired when a tab is about to leave. The ‘tab’ param will contain the ‘tab’ attribute of the tab that is leaving.
Message to display in a red certara-pill within the tab. This typically should be a number to represent the number of errors within a tab. Currently, styles are only supported for vertical-button tab variants.
href
Attribute
href
Type
string
Default
undefined
Required
false
Description
Use href to provide a link if the tab needs to navigate to a new page
rel
Attribute
rel
Type
string
Default
undefined
Required
false
Description
rel to be used intandem with href if necessary
selected
Attribute
selected
Type
boolean
Default
false
Required
false
Description
Boolean value to represent if the tab is currently selected or not. Used internally and does not need to be set by consumers.
tab
Attribute
tab
Type
string
Default
undefined
Required
false
Description
The name of the tab, similar to an id. This must match the ‘tab’ attribute in the coresponding certata-tab-panel component and be unique to other tab items.
Boolean value to represent if the tab panel should be shown. Used internally.
tab
Attribute
tab
Type
string
Default
undefined
Required
true
Description
The tab name, similar to an id. This should match the ‘tab’ attribute on the panels corresponding <certara-tab-item> component and be unique to all other <certara-tab-panel> components.