v7.3.0

RowManager
Plugin
private

Virtual representation of the grid, using Row to represent rows. Plugs into Grid and exposes the following functions on grid itself:

let row = grid.getRowById(1);
No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class

Properties

Properties are getters/setters or publicly accessible variables on this class
    • allHeightsKnown : Boolean
      private
      READONLY

      Returns true if all rows have a known height. They do if all rows are visited, or if RowManager is configured with fixedRowHeight. If so, all tops can be calculated exactly, no guessing needed

    • Get actually used row height, which includes any border and might be an average if using variable row height.

    • totalHeight : Number
      READONLY

      Total estimated grid height (used for scroller)

    • bottomRow : Row
      READONLY

      Get the Row currently displayed furthest down.

    • firstVisibleRow : Row
      READONLY

      Get the topmost visible Row

    • lastVisibleRow : Row
      READONLY

      Get the last visible Row

    • rowHeight : Number
      ON-OWNER

      Set a fixed row height (can still be overridden by renderers) or get configured row height. Setting refreshes all rows

      Has a corresponding rowHeight config.

    • rows : Row[]
      READONLY

      Get all Rows

    • topRow : Row
      READONLY

      Get the Row that is currently displayed at top.

    Functions

    Functions are methods available for calling on the class
      • Invalidates all cached height and resets averageRowHeight and totalKnownHeight

      • calculateRowCount( )
        private

        Calculates how many rows fit in the available height (view height)

      • matchRowCount( )
        private

        Add or remove rows to fit row count

      • Rerender all rows

      • Renders from the top of the grid, also resetting scroll to top. Used for example when collapsing all groups.

      • warpIfNeeded( )
        private

        Jumps to a position if it is far enough from current position. Otherwise does nothing.

      Events

      Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

      Event handlers

      Event handlers are callbacks called as a result of certain actions in this class

      Source path

      Grid/row/RowManager.js

      Contents