Tabs allow the user to organize their content by labels such that only one tab is visible at any given time.
| Name |
Type |
Description |
selectedIndex |
number |
Whether or not the tab is selected |
| Name |
Type |
Description |
change |
Event |
Fired when changed tab |
selectedIndexChange |
Event |
Fired when changed tab with number of selected tab index |
| Name |
Type |
Description |
label |
string |
Label of tab |
active |
boolean |
Whether or not the tab is selected |
disabled |
boolean |
Whether or not the tab is disabled |
A tabs would have the following markup.
<md2-tabs selectedIndex="0">
<md2-tab label="title1">Test content 1</md2-tab>
<md2-tab label="title2">Test content 2</md2-tab>
<md2-tab>
<ng-template md2-tab-label>title3</ng-template>
Test content 3
</md2-tab>
</md2-tabs>