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
- renderer - Column cell renderer
- Grid - The Grid widget
- GridLocation - Cell location reference
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
The class name to initially add to all row elements
Has a corresponding runtime cls property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of Row class, or subclass thereof.
-
A class property getter for the default values of internal properties for this class.
-
Row bottom coordinate
-
Row cell elements
-
Get/set this rows current index in grids store
-
The row element, only applicable when not using multiple grid sections (see elements)
-
An object, keyed by region name (for example
lockedandnormal) containing the elements which comprise the full row. -
Get/set row height
-
Get/set id for currently rendered record
-
Get index in RowManagers rows array
-
Is this the very first row?
-
Get row height including border
-
Row top coordinate
-
An empty array that can be used as a default value.
-
An empty object that can be used as a default value.
-
Identifies an object as an instance of Row class, or subclass thereof.
-
Returns a copy of the full configuration which was used to configure this object.
-
This property is set to
truebefore theconstructorreturns. -
This property is set to
trueon entry to the destroy method. It remains on the objects after returning fromdestroy(). If isDestroyed istrue, this property will also betrue, 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-
This optional class method is called when a class is mixed in using the mixin() method.
-
Registers this class type with its Factory
-
positionElements( )private
Sets css top to position elements at correct top position
-
updateElementsHeight( )private
Sync elements height to rows height