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.

calculateColumWidthDelay
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 widths and put it in col element width style. It is required tu support multiple sticky columns. It also allows us to only specify width to certain columns while other columns get browser calculated width.

rowOptions
RowOptions<T>

Options related to table row.

stateKey
string | undefined

Key to save and restore the state of the columns to localstorage. It should be unique app-wide

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.