TableOptions
Generic types: | T |
Options to configure some of the table behavior. The default value is in
.
Properties
Name | Type | Description |
---|---|---|
autoHeight | boolean | Default is false. The table will take its container vertical space. Vertical scrollbar is visible when needed. If true, the table will display all rows thus the height is adjusted automatically and the vertical scollbar won't be visible. |
calculateColumnWidthDelay | number | Delay in milliseconds to calculate the width of table columns. Default value is 500. If If its value is 0, this feature is disabled. |
footer |
| Table footer component/template. |
rowOptions |
| Options related to table row. |
saveState | { key: string; states?: ("groupByColumns" | "criteria" | "startIndex" | "maxRows" | "sorting" | "columns")[] | undefined; } | null | undefined | Save table states to local storage. The key should be unique app-wide. The states define what to save. If undefined, all states are saved. |
virtualScroll | boolean | Enable virtual scroll for handling huge data. Default is false. If it is true, the |
virtualScrollRowHeight | number | The height for row. It is used to calculate the virtual scroll viewport height. By default the value is 32 following the default NgxPanemuTable style. If you customize the row height css style, ensure to set the correct value for this property. |