@syncfusion/ej2-react-grids
Version:
Feature-rich JavaScript datagrid (datatable) control with built-in support for editing, filtering, grouping, paging, sorting, and exporting to Excel. for React
48 lines (47 loc) • 1.52 kB
TypeScript
import * as React from 'react';
import { Grid, GridModel } from '@syncfusion/ej2-grids';
import { DefaultHtmlAttributes } from '@syncfusion/ej2-react-base';
export interface GridTypecast {
rowTemplate?: string | Function | any;
emptyRecordTemplate?: string | Function | any;
detailTemplate?: string | Function | any;
toolbarTemplate?: string | Function | any;
pagerTemplate?: string | Function | any;
editSettings?: any;
groupSettings?: any;
columnChooserSettings?: any;
}
/**
* `GridComponent` represents the react Grid.
* ```tsx
* <GridComponent dataSource={data} allowPaging={true} allowSorting={true}/>
* ```
*/
export declare class GridComponent extends Grid {
state: Readonly<{
children?: React.ReactNode | React.ReactNode[];
}> & Readonly<GridModel | DefaultHtmlAttributes | GridTypecast>;
setState: any;
private getDefaultAttributes;
initRenderCalled: boolean;
private checkInjectedModules;
directivekeys: {
[key: string]: Object;
};
private statelessTemplateProps;
private templateProps;
private immediateRender;
private isReactMock;
props: Readonly<{
children?: React.ReactNode | React.ReactNode[];
}> & Readonly<GridModel | DefaultHtmlAttributes | GridTypecast>;
forceUpdate: (callBack?: () => any) => void;
context: Object;
portals: any;
isReactComponent: Object;
refs: {
[key: string]: React.ReactInstance;
};
constructor(props: any);
render(): any;
}