Skip to content

charton API


charton API / @chart-on/ui / index / TableViewOptions

Interface: TableViewOptions ​

Defined in: ui/src/table-view.ts:9

Options for createTableView: the most rows shown, the panel's heading and container, and an open/close callback.

Properties ​

container? ​

optional container?: HTMLElement

Defined in: ui/src/table-view.ts:15

Element the panel opens in. Default the chart's root.


maxRows? ​

optional maxRows?: number

Defined in: ui/src/table-view.ts:11

Newest rows shown; the table caption says how many were left out. Default 500.


title? ​

optional title?: string

Defined in: ui/src/table-view.ts:13

Heading and accessible name of the panel. Default Data table.

Methods ​

onOpenChange()? ​

optional onOpenChange(open): void

Defined in: ui/src/table-view.ts:17

Called when the panel opens or closes, e.g. to refresh a toolbar button's pressed state.

Parameters ​

open ​

boolean

Returns ​

void