rowSize([height], [index])
Class: Table.
Description:
Gets/Sets/Resets the height of all table rows or one existing row at specified index.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
number | null | undefined |
Set |
|
|
|
number |
-1 |
Index of a specific row to apply given height to. Index is the original row position, it doesn't change due to sorting. -1 means that height will be applied to all rows. |
Returns:
- If no argument is passed or
heightis set toundefinedthen current value is returned, otherwisethisTable instance is returned for method chaining.
Type: number | Table
Examples:
// To get height of all rows
let h = table.rowSize();
// To get a height of a specific row at index 5
let h = table.rowSize(undefined, 5);
// To set height to all rows
table.rowSize(40);
// To set height to row at index 5
table.rowSize(40, 5);
// To reset height of all rows to default height
table.rowSize(null);
// To reset height of row at index 5 to default height
table.rowSize(null, 5);
