ReadonlycolumnsColumns of the table.
ReadonlydatasetThe dataset associated with the table.
Filter state.
ReadonlyloadLoad error if state === "load-error".
ReadonlyrowThe aria label of a row of the table.
This is a string like Text: ${columnName}.
The default UI attaches it as meta information to a row.
Sort state.
ReadonlystateState of the table.
ReadonlytotalTotal number of items of the last query.
Clears the selection.
Connect this table to the dataset. The UI may use this to ensure that a table observes dataset changes.
Provides access to the data to display conversion code. It converts a DatasetItem into a Row. A row has column values, which are prepared to be displayed in table UI. The column values are field data transformed by Formatters. This method allows data conversion for dataset items currently not displayed in the table. E.g. for CSV Export.
the item to transform
OptionalformatterOptionsOverrides: FormatterOptionsOptions how to format the output. Can be used to override formatting of columns. For example used to control the formatting of numeric values when exported as csv.
Removes all given values from the selection.
iterable of values.
Destroys this table model.
Disconnect this table from the dataset. The UI may use this to prevent unnecessary updates as long as the table is not shown.
Sets the focus to the given item. If datasetItemId is undefined, the focus is removed from the item.
Amount of selected items.
Provides access to all selected ids.
true = selected items available. false = no item selected.
Inverts the selection of all available items in the dataset.
Inverts the selection, reduced to currently available rows.
a boolean indicating whether the given id is selected.
Registers event listener.
Enforce a refresh of the rows.
Adds all values to the selection.
iterable of values.
Optionalselected: booleantrue == select, false === deselect. If omitted this is interpreted as true.
Selects all currently available rows.
Selects all items available in the dataset.
Represents the state of table UI. It grants access to the formatted table data.
You can watch the properties
columns,filterBy,sortBy,total,stateandloadErrorfor changes.You can watch for the events
selection-changed,focus-changed,rows-changedanddestroyed.