tab.directive.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. import { EventEmitter, TemplateRef, OnInit, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
  2. import { TabsetComponent } from './tabset.component';
  3. export declare class TabDirective implements OnInit, OnDestroy {
  4. elementRef: ElementRef;
  5. renderer: Renderer2;
  6. /** tab header text */
  7. heading: string;
  8. /** tab id. The same id with suffix '-link' will be added to the corresponding <li> element */
  9. id: string;
  10. /** if true tab can not be activated */
  11. disabled: boolean;
  12. /** if true tab can be removable, additional button will appear */
  13. removable: boolean;
  14. /** if set, will be added to the tab's class attribute. Multiple classes are supported. */
  15. customClass: string;
  16. /** tab active state toggle */
  17. active: boolean;
  18. /** fired when tab became active, $event:Tab equals to selected instance of Tab component */
  19. selectTab: EventEmitter<TabDirective>;
  20. /** fired when tab became inactive, $event:Tab equals to deselected instance of Tab component */
  21. deselect: EventEmitter<TabDirective>;
  22. /** fired before tab will be removed, $event:Tab equals to instance of removed tab */
  23. removed: EventEmitter<TabDirective>;
  24. addClass: boolean;
  25. headingRef: TemplateRef<any>;
  26. tabset: TabsetComponent;
  27. protected _active: boolean;
  28. protected _customClass: string;
  29. constructor(tabset: TabsetComponent, elementRef: ElementRef, renderer: Renderer2);
  30. ngOnInit(): void;
  31. ngOnDestroy(): void;
  32. }