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

[height]

number | null | undefined

Set number to set height to specific number, null to reset height to default value, undefined to get height.

[index]

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:

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);