UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components

38 lines (37 loc) 1.23 kB
import { AgPromise } from '../utils'; import { ManagedFocusComponent } from '../widgets/managedFocusComponent'; import { IAfterGuiAttachedParams } from '../interfaces/iAfterGuiAttachedParams'; export declare class TabbedLayout extends ManagedFocusComponent { private readonly eHeader; private readonly eBody; private params; private afterAttachedParams; private items; private activeItem; constructor(params: TabbedLayoutParams); private static getTemplate; protected handleKeyDown(e: KeyboardEvent): void; protected onTabKeyDown(e: KeyboardEvent): void; setAfterAttachedParams(params: IAfterGuiAttachedParams): void; getMinDimensions(): { width: number; height: number; }; showFirstItem(): void; private addItem; showItem(tabbedItem: TabbedItem): void; private showItemWrapper; } export interface TabbedLayoutParams { items: TabbedItem[]; cssClass?: string; onItemClicked?: Function; onActiveItemClicked?: Function; } export interface TabbedItem { title: Element; titleLabel: string; bodyPromise: AgPromise<HTMLElement>; name: string; afterAttachedCallback?: (params: IAfterGuiAttachedParams) => void; }