v7.3.0
SupportExamplesFree Trial

Row

Represents a single rendered row in the grid. Consists of one row element for each SubGrid in use. The grid only creates as many rows as needed to fill the current viewport (and a buffer). As the grid scrolls the rows are repositioned and reused, there is not a one-to-one relation between rows and records.

For normal use cases you should not have to use this class directly. Rely on using renderers instead.

// Access a row via the grid
const row = grid.getRowById(recordId);

// Get the row element for a specific region const element = row.getElement('normal');

// Get all cells in the row const cells = row.cells;

See also

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
  • isRow : Booleantrue
    READONLY
    static
    ADVANCED
    Identifies an object as an instance of Row class, or subclass thereof.
  • properties : Object
    internal
    static
    Base

    A class property getter for the default values of internal properties for this class.

  • bottom : Number
    READONLY

    Row bottom coordinate

  • cells : HTMLElement[]
    READONLY

    Row cell elements

  • Get/set this rows current index in grids store

  • element : HTMLElement
    READONLY

    The row element, only applicable when not using multiple grid sections (see elements)

  • elements : Object<String, HTMLElement>
    READONLY

    An object, keyed by region name (for example locked and normal) containing the elements which comprise the full row.

  • Get/set row height

  • Get/set id for currently rendered record

  • index : Number
    READONLY

    Get index in RowManagers rows array

  • isFirst : Boolean
    READONLY

    Is this the very first row?

  • offsetHeight : Number
    READONLY

    Get row height including border

  • top : Number
    READONLY

    Row top coordinate

  • emptyArray : Array
    internal
    READONLY
    Base

    An empty array that can be used as a default value.

  • emptyObject : Object
    internal
    READONLY
    Base

    An empty object that can be used as a default value.

  • isRow : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of Row class, or subclass thereof.
  • config : Object
    READONLY
    ADVANCED
    Base

    Returns a copy of the full configuration which was used to configure this object.

  • isConstructing : Boolean
    READONLY
    ADVANCED
    Base

    This property is set to true before the constructor returns.

  • isDestroying : Boolean
    READONLY
    ADVANCED
    Base

    This property is set to true on entry to the destroy method. It remains on the objects after returning from destroy(). If isDestroyed is true, this property will also be true, so there is no need to test for both (for example, comp.isDestroying || comp.isDestroyed).

Functions

Functions are methods available for calling on the class
  • onClassMixedIn( )
    internal
    static
    Base

    This optional class method is called when a class is mixed in using the mixin() method.

  • initClass( )
    static
    ADVANCED
    Base

    Registers this class type with its Factory

  • positionElements( )
    private

    Sets css top to position elements at correct top position

  • Sync elements height to rows height

Source path

Grid/row/Row.js

Contents