Skip to content

Commit 20c7fb8

Browse files
XTaz1valorkin
authored andcommitted
feat(tabs): added id parameter in tab directive (#1909)
close #1908 * Added id parameter in tab directive * docs(tab): add docs for ID parameter
1 parent dab394c commit 20c7fb8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

demo/src/ng-api-doc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,11 @@ export const ngdoc: any = {
16551655
"name": "removable",
16561656
"type": "boolean",
16571657
"description": "<p>if true tab can be removable, additional button will appear </p>\n"
1658+
},
1659+
{
1660+
"name": "id",
1661+
"type": "string",
1662+
"description": "<p>tab's ID</p>\n"
16581663
}
16591664
],
16601665
"outputs": [

src/tabs/tab.directive.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { TabsetComponent } from './tabset.component';
55
export class TabDirective implements OnInit {
66
/** tab header text */
77
@Input() public heading: string;
8+
/** tab id */
9+
@Input() public id: string;
810
/** if true tab can not be activated */
911
@Input() public disabled: boolean;
1012
/** if true tab can be removable, additional button will appear */

0 commit comments

Comments
 (0)