Tabs
Design
Tabs are used to navigate between groups of similar information.
Security groups.
Security policies.
Watermarks
Code
Attributes
Name | Notes |
---|---|
Implementation | Tabs are connected through the "aria-controls" value. Each tab needs to have the id of the panel it controls set in "aria-controls". Each tab control and tab panel must have an ID. |
Active class | The inital active tab can be set by adding the class "ace-tab-active". If it's not set the first tab is set to be active. |
Changing tabs | Change tabs using the functions "switchToTabId", or "switchToPanelId". |
Javascript
Function | Arguments | Description | Example |
---|---|---|---|
init | elementSelector | Creates tabs. |
|
destroy | elementSelector | Removes selected tab from the page. If none are passed in then all are destroyed. |
|
switchToTabId | string | Changes tab based on the tab id. |
|
switchToPanelId | string | Changes to the tab based on the panel id. |
|