Skip to content

Instantly share code, notes, and snippets.

@thomasJang
Created January 29, 2019 10:09
Show Gist options
  • Save thomasJang/adb5bfc8c537109e4bdd1b962d079eee to your computer and use it in GitHub Desktop.
Save thomasJang/adb5bfc8c537109e4bdd1b962d079eee to your computer and use it in GitHub Desktop.
Datagrid.d.ts
import * as React from 'react';
import { IDataGrid } from './common/@types';
interface IProps extends IDataGrid.IProps {
}
interface IState extends IDataGrid.IRootState {
}
declare class DataGrid extends React.Component<IProps, IState> {
static defaultHeight: number;
static defaultColumnKeys: IDataGrid.IColumnKeys;
static defaultHeader: IDataGrid.IOptionHeader;
static defaultBody: IDataGrid.IOptionBody;
static defaultPageButtons: IDataGrid.IOptionPageButton[];
static defaultPage: IDataGrid.IOptionPage;
static defaultScroller: IDataGrid.IOptionScroller;
static defaultOptions: IDataGrid.IOptions;
static defaultStyles: IDataGrid.IStyles;
static defaultThrottleWait: number;
rootObject: any;
rootNode: React.RefObject<HTMLDivElement>;
clipBoardNode: React.RefObject<HTMLTextAreaElement>;
scrollLeft: number;
scrollTop: number;
state: {
mounted: boolean;
};
constructor(props: IProps);
getOptions: (options: IDataGrid.IOptions) => IDataGrid.IOptions;
getProviderProps: (storeProps: IDataGrid.IStoreProps) => IDataGrid.IStoreProps;
render(): JSX.Element;
componentDidMount(): void;
}
export default DataGrid;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment