Tab 1
Tab 2
Tab 3
Tab 4
Tab 1 Panel
Tab 2 Panel
Tab 3 Panel
Tab 4 Panel
Tab 1
Tab 2
Tab 3
Tab 4
Tab 1 Panel
Tab 2 Panel
Tab 3 Panel
Tab 4 Panel
Tab 1
Tab 2
Tab 3
Tab 4
Tab 1 Panel
Tab 2 Panel
Tab 3 Panel
Tab 4 Panel
Tab 1
Tab 2
Tab 3
Tab 4
Tab 1 Panel
Tab 2 Panel
Tab 3 Panel
Tab 4 Panel
Data
Settings
Styles
Legend
Axis
Tab 1 Panel
Tab 2 Panel
Tab 3 Panel
Tab 4 Panel
Tab 5 Panel
certara-tabs
The main wrapping component for all tabs. This component controls the event emitters as well as navigation for all tabbing logic.
Properties
defaultTab
| |
---|
Attribute | default-tab |
Type | string |
Default | undefined |
Required | false |
Description | 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. |
Events
Name | Description | Bubbles |
---|
certaraTabsDidChange | 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. | false |
Methods
Name | Signature | Description |
---|
getTab | (tab: string | HTMLCertaraTabPanelElement) => Promise<HTMLCertaraTabPanelElement | undefined> | Programmatically retrieve a tab panel within the tab set. |
select | (tab: string | HTMLCertaraTabPanelElement) => Promise<boolean> | Programmatically switch to a different tab. |
Slots
Name | Description |
---|
| Slot for the tab panels and content |
list | Slot for the tab list |
certara-tab-list
Properties
selectedTab
| |
---|
Attribute | selected-tab |
Type | string |
Default | undefined |
Required | false |
Description | The current selected tab within the tab list. This is used internally and doesn’t need to be set. |
size
| |
---|
Attribute | size |
Type | "sm" |
Default | undefined |
Required | false |
Description | Size of the tabs. Only works if variant is ‘buttons’ |
variant
| |
---|
Attribute | variant |
Type | "buttons" | "buttons-vertical" | "default" | "panel" |
Default | 'default' |
Required | false |
Description | The variant toggle for different styles of tabs |
Events
Name | Description | Bubbles |
---|
certaraTabChanged | | true |
Methods
There are no public methods available for this component
Slots
Name | Description |
---|
| Slot for the tab items |
certara-tab-item
Properties
active
| |
---|
Attribute | active |
Type | boolean |
Default | false |
Required | false |
Description | 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. |
Events
There are no events available for this component
Methods
Name | Signature | Description |
---|
setActive | () => Promise<void> | Programatically set the tab panel to be active |
Slots
Name | Description |
---|
| Slot to render the content to show in the tab panel |
certara-tab-panel
Properties
active
| |
---|
Attribute | active |
Type | boolean |
Default | false |
Required | false |
Description | 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. |
Events
There are no events available for this component
Methods
Name | Signature | Description |
---|
setActive | () => Promise<void> | Programatically set the tab panel to be active |
Slots
Name | Description |
---|
| Slot to render the content to show in the tab panel |