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.
-
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
-
Identifies an object as an instance of Row class, or subclass thereof.
Functions
Functions are methods available for calling on the class-
positionElements( )private
Sets css top to position elements at correct top position
-
updateElementsHeight( )private
Sync elements height to rows height