NestedRows

Plugin responsible for displaying and operating on data sources with nested structures.

Methods

destroy()

Destroys the plugin instance.

disableCoreAPIModifiers()

Enable the modify hook skipping flag - allows retrieving the data from Handsontable without this plugin's modifications.

disablePlugin()

Disables the plugin functionality for this Handsontable instance.

enableCoreAPIModifiers()

Disable the modify hook skipping flag.

enablePlugin()

Enables the plugin functionality for this Handsontable instance.

isEnabled(){boolean}

Checks if the plugin is enabled in the handsontable settings. This method is executed in Hooks#beforeInit
hook and if it returns true than the NestedRows#enablePlugin method is called.

Returns: {boolean}

onBeforeRemoveRow(index, amount, physicalRows)

Callback for the beforeRemoveRow change list of removed physical indexes by reference. Removing parent node
has effect in removing children nodes.

Parameters:
Name Type Description
index number

Visual index of starter row.

amount number

Amount of rows to be removed.

physicalRows Array

List of physical indexes.

updatePlugin()

Updates the plugin state. This method is executed when Core#updateSettings is invoked.

Class: NestedRows