Class: ManualRowMove

ManualRowMove

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

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 740

destroy()

Destroy plugin instance.

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

disablePlugin()

Disable plugin for this Handsontable instance.

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

enablePlugin()

Enable the plugin.

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

isEnabled(){Boolean}

Check if plugin is enabled.

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

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 171

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 127

updatePlugin()

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