Getting Started
Usages
Columns
API References
ngx-panemu-table / Interface

TableOptions

Generic types:T

Options to configure some of the table behavior. The default value is in PanemuTableService.getTableOptions().

Properties

NameTypeDescription
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 BaseColumn.width is not specified, we'll let browser to calculate the optimum width for the column. After this delay, we run a logic to get the width and put it in col element width style. It is required to support multiple sticky columns. It also allows us to only specify width to certain columns while other columns get browser calculated width.

If its value is 0, this feature is disabled.

rowOptions
RowOptions<T>

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 autoHeight option is ignored. The vertical scrolling will be always enabled.

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.