ag-grid-enterprise
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
37 lines (36 loc) • 1.49 kB
TypeScript
import type { PositionableOptions, ResizableStructure } from 'ag-grid-community';
import { Component, PositionableFeature } from 'ag-grid-community';
export interface PanelOptions extends PositionableOptions {
component?: Component<any>;
hideTitleBar?: boolean | null;
closable?: boolean | null;
resizable?: boolean | ResizableStructure;
title?: string | null;
cssIdentifier?: string | null;
}
export declare class AgPanel<TConfig extends PanelOptions = PanelOptions> extends Component {
protected readonly config: TConfig;
protected closable: boolean;
protected closeButtonComp: Component | undefined;
protected positionableFeature: PositionableFeature;
close: () => void;
protected readonly eContentWrapper: HTMLElement;
protected readonly eTitleBar: HTMLElement;
protected readonly eTitleBarButtons: HTMLElement;
protected readonly eTitle: HTMLElement;
constructor(config: TConfig);
postConstruct(): void;
protected renderComponent(): void;
getHeight(): number | undefined;
setHeight(height: number | string): void;
getWidth(): number | undefined;
setWidth(width: number | string): void;
setClosable(closable: boolean): void;
setBodyComponent(bodyComponent: Component<any>): void;
addTitleBarButton(button: Component, position?: number): void;
getBodyHeight(): number;
getBodyWidth(): number;
setTitle(title: string): void;
private onBtClose;
destroy(): void;
}