Skip to content

Commit

Permalink
feat(tabs): added id parameter in tab directive (#1909)
Browse files Browse the repository at this point in the history
close #1908
* Added id parameter in tab directive

* docs(tab): add docs for ID parameter
  • Loading branch information
XTaz1 authored and valorkin committed Jun 2, 2017
1 parent dab394c commit 20c7fb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/src/ng-api-doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,11 @@ export const ngdoc: any = {
"name": "removable",
"type": "boolean",
"description": "<p>if true tab can be removable, additional button will appear </p>\n"
},
{
"name": "id",
"type": "string",
"description": "<p>tab's ID</p>\n"
}
],
"outputs": [
Expand Down
2 changes: 2 additions & 0 deletions src/tabs/tab.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { TabsetComponent } from './tabset.component';
export class TabDirective implements OnInit {
/** tab header text */
@Input() public heading: string;
/** tab id */
@Input() public id: string;
/** if true tab can not be activated */
@Input() public disabled: boolean;
/** if true tab can be removable, additional button will appear */
Expand Down

0 comments on commit 20c7fb8

Please sign in to comment.