A data table provides access to a dataset and an associated table model.

The property tableModel gets access to the current table state. The property dataset gets access to the full available data.

You can watch for changes on the property title.

const dataTable = ...;
dataTable.watch("title",({value})=> { ... });

You can watch the event destroyed.

const dataTable = ...;
dataTable.on("destroyed",()=> { ... });
interface DataTable {
    dataset: Dataset;
    destroy(): void;
    id: string;
    on<Name extends "destroyed">(
        name: Name,
        callBack: EventCallback<DataTableEvents[Name]>,
    ): Handle;
    tableModel: TableModel;
    title: string;
}

Hierarchy

Properties

Methods

Properties

dataset: Dataset

The table dataset

id: string

id of the data table.

tableModel: TableModel

The table model

title: string

Title of the data table.

Methods

  • Destroy this instance. Delegates destruction to all datasets and tables.

    Returns void

  • Registers event listener.

    Type Parameters

    • Name extends "destroyed"

    Parameters

    Returns Handle