tabbedLayout.d.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { Promise } from '../utils';
  2. import { ManagedFocusComponent } from '../widgets/managedFocusComponent';
  3. export declare class TabbedLayout extends ManagedFocusComponent {
  4. private eHeader;
  5. private eBody;
  6. private params;
  7. private afterAttachedParams;
  8. private items;
  9. private activeItem;
  10. constructor(params: TabbedLayoutParams);
  11. private static getTemplate;
  12. protected handleKeyDown(e: KeyboardEvent): void;
  13. protected onTabKeyDown(e: KeyboardEvent): void;
  14. setAfterAttachedParams(params: any): void;
  15. getMinDimensions(): {
  16. width: number;
  17. height: number;
  18. };
  19. showFirstItem(): void;
  20. private addItem;
  21. showItem(tabbedItem: TabbedItem): void;
  22. private showItemWrapper;
  23. }
  24. export interface TabbedLayoutParams {
  25. items: TabbedItem[];
  26. cssClass?: string;
  27. onItemClicked?: Function;
  28. onActiveItemClicked?: Function;
  29. }
  30. export interface TabbedItem {
  31. title: Element;
  32. titleLabel: string;
  33. bodyPromise: Promise<HTMLElement>;
  34. name: string;
  35. afterAttachedCallback?: Function;
  36. }