UNPKG

544 BTypeScriptView Raw
1import { AgPromise } from '../utils';
2/** This is for User Components only, do not implement this for internal components. */
3export interface IComponent<T> {
4 /** Return the DOM element of your component, this is what the grid puts into the DOM */
5 getGui(): HTMLElement;
6 /** Gets called once by grid when the component is being removed; if your component needs to do any cleanup, do it here */
7 destroy?(): void;
8 /** The init(params) method is called on the component once. */
9 init?(params: T): AgPromise<void> | void;
10}