Class: TrimRows

TrimRows

handsontable-pro/src/plugins/trimRows/trimRows.js, line 43

Plugin allowing hiding of certain rows.

Example
...
var hot = new Handsontable(document.getElementById('example'), {
  date: getData(),
  trimRows: [1, 2, 5]
});
// Access to trimRows plugin instance:
var trimRowsPlugin = hot.getPlugin('trimRows');

// Hide row programmatically:
trimRowsPlugin.trimRow(1);
// Show rows
trimRowsPlugin.trimRow(1, 2, 9);
// or
trimRowsPlugin.trimRows([1, 2, 9]);
hot.render();
...
// Show row programmatically:
trimRowsPlugin.untrimRow(1);
// Hide rows
trimRowsPlugin.untrimRow(1, 2, 9);
// or
trimRowsPlugin.untrimRows([1, 2, 9]);
hot.render();
...

Members

removedRowsArray

List of last removed row indexes.

rowsMapperRowsMapper

Object containing visual row indexes mapped to data source indexes.

trimmedRowsArray

List of trimmed row indexes.

Methods

handsontable-pro/src/plugins/trimRows/trimRows.js, line 295

destroy()

Destroy plugin.

handsontable-pro/src/plugins/trimRows/trimRows.js, line 117

disablePlugin()

Disable the plugin.

handsontable-pro/src/plugins/trimRows/trimRows.js, line 78

enablePlugin()

Enable the plugin.

handsontable-pro/src/plugins/trimRows/trimRows.js, line 71

isEnabled(){Boolean}

Check if plugin is enabled.

Returns: {Boolean}
handsontable-pro/src/plugins/trimRows/trimRows.js, line 185

isTrimmed(){Boolean}

Check if given physical row is hidden.

Returns: {Boolean}
handsontable-pro/src/plugins/trimRows/trimRows.js, line 148

trimRow(row)

Trim the row provided as physical row index (counting from 0).

Parameters:
Name Type Description
row Number

Physical row index.

handsontable-pro/src/plugins/trimRows/trimRows.js, line 129

trimRows(rows)

Trim the rows provided in the array.

Parameters:
Name Type Description
rows Array

Array of physical row indexes.

handsontable-pro/src/plugins/trimRows/trimRows.js, line 192

untrimAll()

Untrim all trimmed rows.

handsontable-pro/src/plugins/trimRows/trimRows.js, line 176

untrimRow(row)

Untrim the row provided as row index (counting from 0).

Parameters:
Name Type Description
row Number

Physical row index.

handsontable-pro/src/plugins/trimRows/trimRows.js, line 157

untrimRows(rows)

Untrim the rows provided in the array.

Parameters:
Name Type Description
rows Array

Array of physical row indexes.

handsontable-pro/src/plugins/trimRows/trimRows.js, line 103

updatePlugin()

Updates the plugin to use the latest options you have specified.