Interface ViewportData

Extends TableData, but only contains data in the current viewport. The only API change from TableData is that ViewportData also contains the offset to this data, so that the actual row number may be determined.

For viewport subscriptions, it is not necessary to read with the key, only with the position.

Do not assume that the first row in `rows` is the first visible row, because extra rows may be provided for easier scrolling without going to the server.

Hierarchy

  • TableData
    • ViewportData

Accessors

Methods

Accessors

  • get offset(): number
  • The position of the first returned row, null if this data is not for a viewport.

    Returns number

  • get rows(): ViewportRow[]
  • Returns ViewportRow[]

Methods

  • Reads a row object from the viewport, based on its position in the table.

    Parameters

    Returns ViewportRow

  • Parameters

    Returns any

  • Parameters

    Returns Format