| autoHeight | { minHeight: number; } | Config table take the full height of its parent. We recommend to make its parent flex: 1 or height: fixed_value. This prop is disabled if preferHeight is set. |
| cache | EBCacheOptions | Specifies cache. |
| cols | EBTableColProps[] | Specifies cols. |
| columnMinWidth | string | number | Specifies column min width. |
| columnsOrderToReset | string[] | Specifies columns order to reset. |
| columnsResizableByDefault | boolean | Whether columns resizable by default. |
| contextMenuItems | EBTableMenuItemConfig[] | Specifies context menu items. |
| contextMenuShortcutMode | "none" | "default" | "dropdown" | Specifies context menu shortcut mode. |
| data | EBTableRecord[] | Specifies data. |
| dataSource | { type: "task"; name: string; params?: Record ; cache?: { save?: string[]; }; } | (QueryConfig & { type: "query"; }) | eb-query or eb-task to get data |
| dataTransform | (data: unknown) => unknown | Use this prop to edit received record objects before processing table rendering. We can use this to add new fields, change existing fields, ... to use them in rendering callbacks like column.children/rowStyles/etc. |
| defaultExpandAllRows | boolean | Whether default expand all rows. |
| disableRowSelection | boolean | Whether disable row selection. |
| edit | { mode?: "table" | "row" | "cell" | "none"; eventToSubmit?: string; on?: { submit?: ($event: unknown) => void; }; } | Specifies edit. |
| enableClearAllFilters | boolean | Whether enable clear all filters. |
| enableExcelExport | boolean | Whether enable excel export. |
| enableRowExpandable | boolean | Whether enable row expandable. |
| enableSummary | boolean | Whether enable summary. |
| eventToExpand | string | Specifies event to expand. |
| eventToFill | string | Specifies event to fill. |
| eventToLoad | string | Specifies event to load. |
| eventToRefresh | string | string[] | Specifies event to refresh. |
| eventToSelect | string | Specifies event to select. |
| eventToSetColumnsOrder | string | Specifies event to set columns order. |
| eventToSetColumnsState | string | Specifies event to set columns state. |
| eventToSetFilters | string | Specifies event to set filters. |
| eventToSetOrders | string | Specifies event to set orders. |
| eventToUpdateRow | string | Specifies event to update row. |
| excelQueryConfigTransform | (excelQueryConfig: ExcelQueryConfig) => ExcelQueryConfig | Use this prop to change excelQueryConfig before sending it in excel query request. |
| expandedRow | false | { children: { default: (props: { record: unknown; index: number; }) => unknown; }; } | Specifies expanded row. |
| expandIcons | { expand?: string; collapse?: string; style?: Partial ; colWidth?: number; fixed?: boolean; children?: { default?: (props: { expandable: boolean; expanded: boolean; record: unknown; onExpand: (record: unknown) => void; }) => unknown; }; } | Specifies expand icons. |
| filters | QueryFilter[] | No official description found; inferred from type declaration. |
| hideColumnIcons | boolean | Whether hide column icons. |
| initialColumnsOrder | string[] | Specifies initial columns order. |
| initialColumnsWidth | Record | Specifies initial columns width. |
| initialFilters | QueryFilter[] | Specifies initial filters. |
| initialOrders | QueryOrder[] | Specifies initial orders. |
| initialVisibleColumns | string[] | Specifies initial visible columns. |
| isRowExpandable | (record: unknown) => boolean | Callback for is row expandable. |
| menuItems | EBTableMenuItemConfig[] | Specifies menu items. |
| mobileSafe | boolean | eb-table will switch to use contextMenuShortcutMode: dropdown and pagination.noLabel: true when the screen width is less than 576px (xs breakpoint) |
| multipleColsSort | boolean | Whether multiple cols sort. |
| multipleSelection | boolean | Whether multiple selection. |
| on.change | eBuilder events emit | Callback for change. |
| on.click | eBuilder events emit | Callback for click. |
| on.columns | eBuilder events emit | Callback for columns. |
| on.filters | eBuilder events emit | Callback for filters. |
| on.load | eBuilder events emit | Callback for load. |
| on.orders | eBuilder events emit | Callback for orders. |
| pagination | { size?: number; options?: number[]; hide?: boolean; noLabel?: boolean; autoHide?: boolean; } | Specifies pagination. |
| params | Record | Specifies params. |
| parentChild | { indentSize?: number; parentRefKey: string; parentValueKey: string; defaultExpandAll?: boolean; } | Specifies parent child. |
| preferHeight | string | Specifies prefer height. |
| preventUnselectRowOnClick | boolean | Whether prevent unselect row on click. |
| query | QueryConfig | Specifies query. |
| queryConfigTransform | (queryConfig: QueryConfig) => QueryConfig | Use this prop to change queryConfig (orders, filters, params) before sending it in query/task request. We can use this to edit orders, filters, params, ... but still keep the selected filters on UI |
| reorder | { disable?: boolean; draggable?: boolean; dragHandleColumn?: string; orderKey: string; pkKey?: string; mutation?: string; mutationParamsTransform?: (order: number, key: string | number) => Record ; queryNextSort?: { ...; }; updateRecordsOrderKeyValue?: (records: Record []) => void; } | Specifies reorder. |
| rowClass | string | ((record: Record , index: number) => string) | Specifies row class. |
| rowKey | string | ((record: EBTableRecord) => EBRowKeyType) | Specifies row key. |
| rowStyle | CSSProperties | ((record: Record , index: number) => CSSProperties) | Inline styles for each row. This can be a fixed style or a function that returns a style object based on the record and index. |
| sectionRowIndexes | number[] | Specifies section row indexes. |
| selectRowOnClick | boolean | Whether select row on click. |
| selectRowOnContextMenu | boolean | Whether select row on context menu. |
| size | "middle" | "small" | "large" | Specifies size. |
| sort | { by: string; direction: "ASC" | "DESC"; local?: boolean; } | Single col sorting, for multiple cols sorting, please use cols[].sortByDefault and multipleColsSort |
| style | CSSProperties | Inline style overrides. |
| title | string | { children: { default?: () => unknown[]; }; } | Specifies title. |
| unmountExpandedOnCollapse | boolean | Whether unmount expanded on collapse. |
| useMaxContentWidth | boolean | Whether use max content width. |