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.
Configs
1
Configs
1The class name to initially add to all row elements
Properties
18
Properties
18Class hierarchy
Other
Row bottom coordinate
Row cell elements
When read, this a DomClassList of class names to be applied to this Row's elements.
It can be set using Object notation where each property name with a truthy value is added as a class, or as a regular space-separated string.
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 locked and normal) 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
Functions
23
Functions
23Other
Add CSS classes to each element.
| Parameter | Type | Description |
|---|---|---|
classes | String | Object<String, (Boolean|Number)> | DomClassList |
Adds/removes class names according to the passed object's properties.
Properties with truthy values are added. Properties with false values are removed.
| Parameter | Type | Description |
|---|---|---|
classes | Object<String, (Boolean|Number)> | Object containing properties to set/clear |
Get the cell element for the specified column.
| Parameter | Type | Description |
|---|---|---|
columnId | String | Number | Column id |
Cell element
Get cell elements for specified region.
| Parameter | Type | Description |
|---|---|---|
region | String | Region to get elements for |
Array of cell elements
Get the element for the specified region.
| Parameter | Type | Description |
|---|---|---|
region | String |
Get the element bounds for the specified region of this Row.
| Parameter | Type | Description |
|---|---|---|
region | String |
Remove CSS classes from each element.
| Parameter | Type | Description |
|---|---|---|
classes | String | Object<String, (Boolean|Number)> | DomClassList |
Toggle CSS classes for each element.
| Parameter | Type | Description |
|---|---|---|
classes | Object<String, (Boolean|Number)> | DomClassList | String | |
add | Boolean |