Interface DataViewProvider<Args>

Used to create new data views from data view types.

interface DataViewProvider<Args> {
    getDataView(dataViewType, ...args): DataView;
}

Type Parameters

  • Args extends unknown[] = unknown[]

Methods

Methods

  • Get or create a data view for the given data view type and optional arguments.

    Typically, the function creates a new data view instance for the given arguments. However, a data view type may define a singleton data view, so subsequent calls of this function will return the same data view instance.

    Parameters

    • dataViewType: DataViewType

      The data view type.

    • Rest ...args: Args

      Arbitrary arguments understood by the data view to be created. Typically, they specify some data source to be displayed in the view

    Returns DataView

    An existing or new data view instance.

Generated using TypeDoc