general-table
<advanced.general-table>
Properties
Name | Description | Type | Default |
---|---|---|---|
showCard | true | ||
rowSelection | false | TableRowSelection<any> | - | |
rowKey | string | "key" | |
hiddenColumns | Array<string | number> | - | |
showSelectInfo | false | ||
filters | Record<string, string[]> | - | |
configProps | any | - | |
sort | string | null | - | |
order | string | number | null | - | |
rowDisabledConfig | RowDisabledProps | RowDisabledProps[] | - | |
expandedRowBrick | {
useBrick?: UseSingleBrickConf;
} | ||
expandIcon | {
collapsedIcon: GeneralIconProps;
expandedIcon: GeneralIconProps;
} | ||
expandIconAsCell | true | ||
expandIconColumnIndex | number | - | |
expandRowByClick | boolean | false | |
optimizedColumns | Array<string | number> | - | |
stripEmptyExpandableChildren | false | ||
defaultExpandAllRows | boolean | false | |
ellipsisInfo | boolean | false | |
expandedRowKeys | string[] | - | |
selectAllChildren | boolean | false | |
defaultSelectAll | boolean | false | |
childrenColumnName | children | ||
sortable | true | ||
frontSearch | boolean | false | |
frontSearchQuery | - | ||
exactSearch | boolean | false | |
frontSearchFilterKeys | string[] | - | |
page | number | - | |
pageSize | number | - | |
scrollConfigs | TableProps<unknown>["scroll"] | { x: true } | |
qField | "q" | ||
tableDraggable | boolean | false | |
zebraPattern | boolean | false | |
storeCheckedByUrl | boolean | false | |
extraRows | Record<string, unknown>[] | - | |
autoSelectParentWhenAllChildrenSelected | boolean | false | |
thTransparent | boolean | - | |
showHeader | true | ||
pagination | false | TablePaginationConfig | - | |
size | SizeType | - | |
type | RowSelectionType | - | |
shouldUpdateUrlParams | true | ||
shouldRenderWhenUrlParamsUpdate | true | ||
selectedRowKeys | React.Key[] | [] |
Events
Name | Description | Event Detail |
---|---|---|
page.update | Record<string, number> - {[pagePath]: xxx} | |
filter.update | Record<string, number> - {[pagePath]:1,[pageSizePath]:xxx} | |
select.update | Record<string, any>[] - Record<string,any>[] | |
select.row.keys.update | string[] - Record<string,any>[] | |
sort.update | {
sort: string;
order: string | number;
} - {sort:string;order:string|number} | |
row.expand | {
expanded: boolean;
record: Record<string, any>;
} - {expanded:boolean;record:Record<string,any>} | |
expand.rows.change | {
expandedRows: React.Key[];
} - {expandedRows:string[]| number[]} | |
row.drag | {
data: Record<string, any>[];
} - {data:Record<string,any>[]} |
Methods
Name | Description | Params | Return |
---|---|---|---|
filterSourceData | event: CustomEvent | void | |
expandAll |