Class: ManualColumnMove

ManualColumnMove

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

This plugin allows to change columns order.

API:

  • moveColumn - move single column to the new position.
  • moveColumns - move many columns (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 columns.
  • guideline - line which shows where rows has been moved.

Members

backlightObject

Backlight UI object.

columnsMapperRowsMapper

Object containing visual row indexes mapped to data source indexes.

eventManagerObject

Event Manager object.

guidelineObject

Guideline UI object.

removedColumnsArray

List of last removed row indexes.

Methods

handsontable/src/plugins/manualColumnMove/manualColumnMove.js, line 708

destroy()

Destroy plugin instance.

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

disablePlugin()

Disable plugin for this Handsontable instance.

handsontable/src/plugins/manualColumnMove/manualColumnMove.js, line 102

enablePlugin()

Enable the plugin.

handsontable/src/plugins/manualColumnMove/manualColumnMove.js, line 95

isEnabled(){Boolean}

Check if plugin is enabled.

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

moveColumn(column, target)

Move a single column.

Parameters:
Name Type Description
column Number

Visual column index to be moved.

target Number

Visual column index being a target for the moved column.

handsontable/src/plugins/manualColumnMove/manualColumnMove.js, line 171

moveColumns(columns, target)

Move multiple columns.

Parameters:
Name Type Description
columns Array

Array of visual column indexes to be moved.

target Number

Visual column index being a target for the moved columns.

handsontable/src/plugins/manualColumnMove/manualColumnMove.js, line 127

updatePlugin()

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