1 |
|
2 |
|
3 |
|
4 | import { Promise } from '../utils';
|
5 | export declare class TabbedLayout {
|
6 | private eGui;
|
7 | private eHeader;
|
8 | private eBody;
|
9 | private params;
|
10 | private afterAttachedParams;
|
11 | private static TEMPLATE;
|
12 | private items;
|
13 | private activeItem;
|
14 | constructor(params: TabbedLayoutParams);
|
15 | setAfterAttachedParams(params: any): void;
|
16 | getMinWidth(): number;
|
17 | showFirstItem(): void;
|
18 | private addItem(item);
|
19 | showItem(tabbedItem: TabbedItem): void;
|
20 | private showItemWrapper(wrapper);
|
21 | getGui(): HTMLElement;
|
22 | }
|
23 | export interface TabbedLayoutParams {
|
24 | items: TabbedItem[];
|
25 | cssClass?: string;
|
26 | onItemClicked?: Function;
|
27 | onActiveItemClicked?: Function;
|
28 | }
|
29 | export interface TabbedItem {
|
30 | title: Element;
|
31 | bodyPromise: Promise<HTMLElement>;
|
32 | name: string;
|
33 | afterAttachedCallback?: Function;
|
34 | }
|