Class CoverGridTableModel<T>

Table model of a cover grid (created by CoverGridFactory.createCoverGridModel): items as tiles, the number of columns follows the width (floor(width / coverWidth)), header and footer are hidden. The data and the tile size live in CoverGridBodyModel (tableModel.bodyModel).

Example

declare const grid: CoverGridTableModel<{ title: string }>;
const columns = grid.getColumnCount();
tableApi.scrollToIndex(0, Math.floor(500 / columns)); // the row of item 500

Type Parameters

  • T

Hierarchy

  • CoverGridTableModel

Implements

Constructors

Properties

bodyModel: CoverGridBodyModel<T>
paddingTop: number = 0

Methods

  • Moves a column from the source column index to the target column index.

    Parameters

    • _sourceColumnIndex: number

      The index of the column to be moved.

    • _targetColumnIndex: number

      The index where the column will be moved to.

    Returns void

    • This method does not return anything.