RevGrid - v0.9.3
    Preparing search index...

    Type Parameters

    Implements

    Index

    Constructors

    Accessors

    Methods

    • Returns void

    • Returns void

    • The current count of rows data in the server.

      Returns number

      Number of data rows.

    • IMPLEMENTATION OF THIS METHOD IS OPTIONAL.

      Get a row of data.

      The injected default implementation is an object of lazy getters.

      Parameters

      • index: number

      Returns ObjectViewRow

      The data row corresponding to the given rowIndex. If row does not exist, then throw error.

    • Get a field's value at the specified row in a format suitable for display.

      Parameters

      • field: SF
      • y: number

      Returns unknown

      The value of the field at the specified row.

      The core of the client does not need to know the type of the return value. getViewValue() is called by the Cell Painter associated with the cell/subgrid. The cell painter expects a certain type of view value and casts the result accordingly.

    • Returns void

    • IMPLEMENTATION OF THIS METHOD IS OPTIONAL.

      Set a cell's value given its column schema & row indexes and a new value.

      Parameters

      • field: SF
      • y: number
      • value: unknown

      Returns void

    • Update or blank row in place.

      Note parameter order is the reverse of addRow.

      Parameters

      • index: number
      • dataRow: ObjectViewRow

        if omitted or otherwise falsy, row renders as blank

      Returns void