tabset.component.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. import { OnDestroy, Renderer2, ElementRef } from '@angular/core';
  2. import { TabDirective } from './tab.directive';
  3. import { TabsetConfig } from './tabset.config';
  4. export declare class TabsetComponent implements OnDestroy {
  5. private renderer;
  6. private elementRef;
  7. /** if true tabs will be placed vertically */
  8. vertical: boolean;
  9. /** if true tabs fill the container and have a consistent width */
  10. justified: boolean;
  11. /** navigation context class: 'tabs' or 'pills' */
  12. type: string;
  13. clazz: boolean;
  14. tabs: TabDirective[];
  15. classMap: {
  16. [key: string]: boolean;
  17. };
  18. protected isDestroyed: boolean;
  19. protected _vertical: boolean;
  20. protected _justified: boolean;
  21. protected _type: string;
  22. constructor(config: TabsetConfig, renderer: Renderer2, elementRef: ElementRef);
  23. ngOnDestroy(): void;
  24. addTab(tab: TabDirective): void;
  25. removeTab(tab: TabDirective, options?: {
  26. reselect: boolean;
  27. emit: boolean;
  28. }): void;
  29. keyNavActions(event: KeyboardEvent, index: number): void;
  30. protected getClosestTabIndex(index: number): number;
  31. protected hasAvailableTabs(index: number): boolean;
  32. protected setClassMap(): void;
  33. }