Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
docs(tabs): Update docs and changelog for breaking change to tab chan…
Browse files Browse the repository at this point in the history
…ge event (#402)
  • Loading branch information
rapropos authored and trimox committed Nov 22, 2017
1 parent c66a0d9 commit 0dc675f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Example:
<mdc-icon>navigate_before</mdc-icon>
</mdc-tab-bar-scroll-back>
```
* **tabs:** Changed format of change event data from `{activeTabIndex: number}` to `{index: number, tab: MdcTab}`.
* **select:** Removed `label` setter and `setLabel()` function. Use `placeholder` and `setPlaceholder` instead.


Expand Down
4 changes: 2 additions & 2 deletions src/demo-app/components/tab-demo/tab-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1 mdc-typography-display1>Tabs</h1>
</thead>
<tbody>
<tr>
<td><pre>change(activeTabIndex: number)</pre></td>
<td><pre>change({index: number, tab: MdcTab})</pre></td>
<td>Broadcast when a user actions on a tab, resulting in a change in the selected tab.</td>
</tr>
</tbody>
Expand Down Expand Up @@ -354,7 +354,7 @@ <h1 mdc-typography-display1>Tabs</h1>
</mdc-toolbar>

<pre mdc-typography-caption>
Tab Change event:
Tab Change event:
index: {{eventTabIndex}}
</pre>

Expand Down

0 comments on commit 0dc675f

Please sign in to comment.