// Type definitions for @dyna-grid/core v1.1.4 // Project: // Definitions by: zhangkun <> import { DyPromise } 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: DyPromise; name: string; afterAttachedCallback?: (params: IAfterGuiAttachedParams) => void; }