Interface DataTable

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<AllowedIdTypes>;
    destroy(): void;
    id: string;
    on<Name>(name, callBack): Handle;
    tableModel: TableModel<AllowedIdTypes>;
    title: string;
}

Hierarchy

Properties

Methods

Properties

dataset: Dataset<AllowedIdTypes>

The table dataset

id: string

id of the data table.

tableModel: TableModel<AllowedIdTypes>

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

Generated using TypeDoc