Class: ManualRowMove

ManualRowMove

handsontable/src/plugins/manualRowMove/manualRowMove.js, line 24

This plugin allows to change rows order.

API:

  • moveRow - move single row to the new position.
  • moveRows - move many rows (as an array of indexes) to the new position.

If you want apply visual changes, you have to call manually the render() method on the instance of handsontable.

UI components:

  • backlight - highlight of selected rows.
  • guideline - line which shows where rows has been moved.

Members

backlightObject

Backlight UI object.

eventManagerObject

Event Manager object.

guidelineObject

Guideline UI object.

removedRowsArray

List of last removed row indexes.

rowsMapperRowsMapper

Object containing visual row indexes mapped to data source indexes.

Methods

handsontable/src/plugins/manualRowMove/manualRowMove.js, line 735

destroy()

Destroy plugin instance.

handsontable/src/plugins/manualRowMove/manualRowMove.js, line 145

disablePlugin()

Disable plugin for this Handsontable instance.

handsontable/src/plugins/manualRowMove/manualRowMove.js, line 106

enablePlugin()

Enable the plugin.

handsontable/src/plugins/manualRowMove/manualRowMove.js, line 99

isEnabled(){Boolean}

Check if plugin is enabled.

Returns: {Boolean}
handsontable/src/plugins/manualRowMove/manualRowMove.js, line 167

moveRow(row, target)

Move a single row.

Parameters:
Name Type Description
row Number

Visual row index to be moved.

target Number

Visual row index being a target for the moved row.

handsontable/src/plugins/manualRowMove/manualRowMove.js, line 177

moveRows(rows, target)

Move multiple rows.

Parameters:
Name Type Description
rows Array

Array of visual row indexes to be moved.

target Number

Visual row index being a target for the moved rows.

handsontable/src/plugins/manualRowMove/manualRowMove.js, line 133

updatePlugin()

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