Bag of data tables.
To access the items you can use for...of:
const dataTables = ...;for (const dataTable of dataTables) { ...} Copy
const dataTables = ...;for (const dataTable of dataTables) { ...}
If you need an array use the tables property
tables
const dataTables = ...;const tables = dataTables.tables; Copy
const dataTables = ...;const tables = dataTables.tables;
Use the size property to check how many data tables are available.
size
const dataTables = ...;const size = dataTables.size; Copy
const dataTables = ...;const size = dataTables.size;
Use getFirstSelectedTable to access the first selected data table (the one shown in the result-ui).
getFirstSelectedTable
const dataTables = ...;const dataTable = dataTables.getFirstSelectedTable(); Copy
const dataTables = ...;const dataTable = dataTables.getFirstSelectedTable();
You can watch the events changed, selection-changed and destroyed.
changed
selection-changed
destroyed
const dataTables = ...;dataTables.on("changed",({added, deleted, updated})=> { ... });dataTables.on("selection-changed",({added, deleted, updated})=> { ... });dataTables.on("destroyed",()=> { ... }); Copy
const dataTables = ...;dataTables.on("changed",({added, deleted, updated})=> { ... });dataTables.on("selection-changed",({added, deleted, updated})=> { ... });dataTables.on("destroyed",()=> { ... });
Readonly
Amount of data tables.
Provides access to an array representation of the tables. Equivalent to Array.from(tableCollection). A change to the array is not reflected in the collection.
Array.from(tableCollection)
Appends a new data table.
Clears the selection. Note: A new table will be selected automatically, a tick later.
Emits event 'data-table-clicked'.
id of data table
Delete data table by id and destroys it.
Delete data table by id
Removes all table ids from the selection.
iterable of ids.
Destroy instance. Delegates destruction to all data tables.
Emits event 'data-table-focus-changed'.
Lookup data table by id
Provides access to the first selected data table, if one is available.
Provides access to all selected ids.
Provides a way to get all selected items.
Amount of selected items.
Test if data table with id is contained.
true = selected tables available. false = no tables selected.
a boolean indicating whether the given id is selected.
Registers event listener.
Adds all table ids to the selection.
Optional
true = select, false = deselect. If omitted true is assumed.
Bag of data tables.
To access the items you can use for...of:
If you need an array use the
tables
propertyUse the
size
property to check how many data tables are available.Use
getFirstSelectedTable
to access the first selected data table (the one shown in the result-ui).You can watch the events
changed
,selection-changed
anddestroyed
.