Skip to content

Instantly share code, notes, and snippets.

@thomasJang
Last active January 29, 2019 10:05
Show Gist options
  • Save thomasJang/6e88ef74d2d7298b1cae6228e582b715 to your computer and use it in GitHub Desktop.
Save thomasJang/6e88ef74d2d7298b1cae6228e582b715 to your computer and use it in GitHub Desktop.
export namespace IDataGrid {
export interface IColumn extends IColPrimitive {
colIndex?: number;
rowIndex?: number;
formatter?: formatterFunction | string;
collector?: collectorFunction | string;
editor?: editorFunction | string | { type?: string };
hidden?: boolean;
columns?: IColumn[];
depth?: number;
columnAttr?: string;
}
export interface IProps {
data?: any[];
columns: IColumn[];
footSum?: IColumn[][];
width: number;
height: number;
style?: any;
options?: IOptions;
loading?: boolean;
loadingData?: boolean;
rowSelector?: IRowSelector;
selection?: ISelection;
scrollLeft?: number;
scrollTop?: number;
onBeforeEvent?: (param: IonEventParam) => void;
onAfterEvent?: (param: IonEventParam) => void;
onScrollEnd?: (param: IonScrollEndFunctionParam) => void;
onRightClick?: (param: IonRightClickParam) => void;
}
}
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist/es6",
"module": "commonjs",
"target": "es6",
"allowJs": false,
"declaration": true,
"sourceMap": false
},
"include": ["src/axui-datagrid/**/*"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment