UNPKG

2.15 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef, OnInit, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
2import { TabsetComponent } from './tabset.component';
3import * as ɵngcc0 from '@angular/core';
4export declare class TabDirective implements OnInit, OnDestroy {
5 elementRef: ElementRef;
6 renderer: Renderer2;
7 /** tab header text */
8 heading?: string;
9 /** tab id. The same id with suffix '-link' will be added to the corresponding <li> element */
10 id?: string;
11 /** if true tab can not be activated */
12 disabled: boolean;
13 /** if true tab can be removable, additional button will appear */
14 removable: boolean;
15 /** if set, will be added to the tab's class attribute. Multiple classes are supported. */
16 get customClass(): string | undefined;
17 set customClass(customClass: string | undefined);
18 /** tab active state toggle */
19 get active(): boolean | undefined;
20 set active(active: boolean | undefined);
21 /** fired when tab became active, $event:Tab equals to selected instance of Tab component */
22 selectTab: EventEmitter<TabDirective>;
23 /** fired when tab became inactive, $event:Tab equals to deselected instance of Tab component */
24 deselect: EventEmitter<TabDirective>;
25 /** fired before tab will be removed, $event:Tab equals to instance of removed tab */
26 removed: EventEmitter<TabDirective>;
27 addClass: boolean;
28 role: string;
29 get ariaLabelledby(): string;
30 headingRef?: TemplateRef<any>;
31 tabset: TabsetComponent;
32 protected _active?: boolean | undefined;
33 protected _customClass: string;
34 constructor(tabset: TabsetComponent, elementRef: ElementRef, renderer: Renderer2);
35 ngOnInit(): void;
36 ngOnDestroy(): void;
37 static ɵfac: ɵngcc0.ɵɵFactoryDef<TabDirective, never>;
38 static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<TabDirective, "tab, [tab]", ["tab"], { "disabled": "disabled"; "removable": "removable"; "customClass": "customClass"; "active": "active"; "heading": "heading"; "id": "id"; }, { "selectTab": "selectTab"; "deselect": "deselect"; "removed": "removed"; }, never>;
39}
40
41//# sourceMappingURL=tab.directive.d.ts.map
\No newline at end of file