Class MutableDataModelAbstract

An object which provides the mutable data for a data grid.

Notes

This object is an extension to DataModel and it only adds ability to change data for cells.

Hierarchy

Constructors

Accessors

Methods

  • Get the data value for a cell in the data model.

    Returns

    The data value for the specified cell.

    Notes

    The returned data should be treated as immutable.

    This method is called often, and so should be efficient.

    Parameters

    • region: CellRegion

      The cell region of interest.

    • row: number

      The row index of the cell of interest.

    • column: number

      The column index of the cell of interest.

    Returns any

  • Get the metadata for a cell in the data model.

    Returns

    The metadata for the specified cell.

    Notes

    The returned metadata should be treated as immutable.

    This method is called often, and so should be efficient.

    The default implementation returns {}.

    Parameters

    • region: CellRegion

      The cell region of interest.

    • row: number

      The row index of the cell of interest.

    • column: number

      The column index of the cell of interest.

    Returns Metadata

  • Set the data value for a cell in the data model.

    Returns

    true if succeeds, false otherwise.

    Parameters

    • region: CellRegion

      The cell region of interest.

    • row: number

      The row index of the cell of interest.

    • column: number

      The column index of the cell of interest.

    • value: unknown

    Returns boolean

Generated using TypeDoc