mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(tabs): adds README file (#527)
This commit is contained in:
committed by
Jeremy Elbourn
parent
31bf7eff67
commit
9a33da671c
@@ -0,0 +1,30 @@
|
||||
# MdTabGroup
|
||||
Tab groups allow the user to organize their content by labels such that only one tab is visible at any given time.
|
||||
|
||||
### Examples
|
||||
A basic tab group would have the following markup.
|
||||
```html
|
||||
<md-tab-group>
|
||||
<md-tab>
|
||||
<template md-tab-label>One</template>
|
||||
<template md-tab-content>
|
||||
<h1>Some tab content</h1>
|
||||
<p>...</p>
|
||||
</template>
|
||||
</md-tab>
|
||||
<md-tab>
|
||||
<template md-tab-label>Two</template>
|
||||
<template md-tab-content>
|
||||
<h1>Some more tab content</h1>
|
||||
<p>...</p>
|
||||
</template>
|
||||
</md-tab>
|
||||
</md-tab-group>
|
||||
```
|
||||
|
||||
## `<md-tab-group>`
|
||||
### Properties
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `selectedIndex` | `number` | The index of the currently active tab. |
|
||||
Reference in New Issue
Block a user