Overview
Component a2-tabs is a collection of panels displayed horizontally.
Selector |
Description |
a2-tabs |
Defines tabs component and its global configuration |
a2-tab |
Defines single tab panel |
a2-tabs
Input |
Type |
Default |
Description |
type |
string |
tabs |
Defines tabs type class (nav-{type}). Allow to use Bootstrap 4 classes like "tabs" and "pills". |
openedTab |
string |
N/A |
Determines initially opened tab by name |
Outputs
Output |
Type |
Description |
tabChange |
EventEmitter of TabChangeEvent |
Emits TabChangeEvent when opened tab is changed. |
contentChange |
EventEmitter of Array<TabState> |
Emits list of all available tabs every time when new tab is added or removed from DOM |
a2-tab
Input |
Type |
Default |
Description |
name |
string |
tab-{nextId} |
Defines name of specific tab. |
disabled |
boolean |
false |
Determines if given tab is disabled |
Templates
Selector |
Description |
template tabHeader |
Allow to define tab header. |
template tabFooter |
Allow to define tab footer. |
Types
Example
HTML:
TypeScript: