UNPKG

ag-grid-react

Version:
20 lines (19 loc) 910 B
import type { AgPromise, IToolPanel, IToolPanelParams } from 'ag-grid-community'; import { CustomComponentWrapper } from './customComponentWrapper'; import type { CustomToolPanelProps } from './interfaces'; export declare class ToolPanelComponentWrapper extends CustomComponentWrapper<IToolPanelParams, CustomToolPanelProps, object> implements IToolPanel { private state; private appliedParams; private readonly onStateChange; init(params: IToolPanelParams): AgPromise<void>; refresh(params: IToolPanelParams): boolean; /** * A restore hands over fresh params; `api.refreshToolPanel()` re-presents the applied ones, so the * state the component has since reported must survive it. The state object can be the same on * repeat restores. */ private applyInitialState; getState(): any; private updateState; protected getProps(): CustomToolPanelProps; }