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" | "path" | "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. ‘path’ uses the full pathname: tab items with a path attribute are matched to the current path on init; on tab click the component emits certaraTabsPathNavigate so the host (e.g. Angular Router) can navigate. The tab specified in the URL will also be shown on initial load.
scrollable
Attribute
scrollable
Type
boolean
Default
false
Required
false
Description
When true, the active tab panel will be scrollable within the available space.
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
certaraTabsPathNavigate
When navigation=“path”, fired when a tab with a path is selected. The host should navigate to detail.path (e.g. Angular: router.navigateByUrl(detail.path)).
true
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
path
Attribute
path
Type
string
Default
undefined
Required
false
Description
Route path for path-based navigation (e.g. Angular Router). When set with certara-tabs navigation=“path”, clicking this tab emits certaraTabsPathNavigate so the host can navigate (e.g. router.navigateByUrl).
rel
Attribute
rel
Type
string
Default
undefined
Required
false
Description
rel to be used in tandem 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.