UNPKG

978 BTypeScriptView Raw
1// Type definitions for ag-grid v18.1.2
2// Project: http://www.ag-grid.com/
3// Definitions by: Niall Crosby <https://github.com/ag-grid/>
4import { Promise } from '../utils';
5export 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}
23export interface TabbedLayoutParams {
24 items: TabbedItem[];
25 cssClass?: string;
26 onItemClicked?: Function;
27 onActiveItemClicked?: Function;
28}
29export interface TabbedItem {
30 title: Element;
31 bodyPromise: Promise<HTMLElement>;
32 name: string;
33 afterAttachedCallback?: Function;
34}