UNPKG

776 BTypeScriptView Raw
1import type { AgPromise, IAfterGuiAttachedParams } from 'ag-grid-community';
2export interface TabbedLayoutParams {
3 items: TabbedItem[];
4 cssClass?: string;
5 keepScrollPosition?: boolean;
6 onItemClicked?: (event: {
7 item: TabbedItem;
8 }) => void;
9 onActiveItemClicked?: () => void;
10 suppressFocusBodyOnOpen?: boolean;
11 suppressTrapFocus?: boolean;
12 enableCloseButton?: boolean;
13 closeButtonAriaLabel?: string;
14 onCloseClicked?: () => void;
15}
16export interface TabbedItem {
17 title: Element;
18 titleLabel: string;
19 bodyPromise: AgPromise<HTMLElement>;
20 name: string;
21 getScrollableContainer?: () => HTMLElement;
22 afterAttachedCallback?: (params: IAfterGuiAttachedParams) => void;
23 afterDetachedCallback?: () => void;
24}