Class: DropdownMenu

DropdownMenu

handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 29

Members

staticDropdownMenu.DEFAULT_ITEMS

Default menu items order when dropdownMenu is enabled by setting the config item to true.

commandExecutorCommandExecutor

Instance of CommandExecutor.

eventManagerEventManager

Instance of EventManager.

itemsFactoryItemsFactory

Instance of ItemsFactory.

Instance of Menu.

Methods

handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 185

close()

Close menu.

handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 308

destroy()

Destroy instance.

handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 143

disablePlugin()

Disable the plugin for this Handsontable instance.

handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 93

enablePlugin()

Enable the plugin for this Handsontable instance.

handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 218

executeCommand(commandName, params)

Execute context menu command.

You can execute all predefined commands:

  • 'row_above' - Insert row above
  • 'row_below' - Insert row below
  • 'col_left' - Insert column on the left
  • 'col_right' - Insert column on the right
  • 'clear_column' - Clear selected column
  • 'remove_row' - Remove row
  • 'remove_col' - Remove column
  • 'undo' - Undo last action
  • 'redo' - Redo last action
  • 'make_read_only' - Make cell read only
  • 'alignment:left' - Alignment to the left
  • 'alignment:top' - Alignment to the top
  • 'alignment:right' - Alignment to the right
  • 'alignment:bottom' - Alignment to the bottom
  • 'alignment:middle' - Alignment to the middle
  • 'alignment:center' - Alignment to the center (justify)

Or you can execute command registered in settings where key is your command name.

Parameters:
Name Type Description
commandName String
params *
handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 86

isEnabled(){Boolean}

Check if the plugin is enabled in the Handsontable settings.

Returns: {Boolean}
handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 300

onMenuAfterClose()

On menu after close listener.

handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 293

onMenuAfterOpen()

On menu after open listener.

handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 166

open(event)

Open menu and re-position it based on the DOM event object.

Parameters:
Name Type Description
event Event | Object

Event object.

handsontable-pro/src/plugins/dropdownMenu/dropdownMenu.js, line 134

updatePlugin()

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