MultiSelectEditor
Description
Initializes the editor, creates DOM elements, and binds dropdown and hook events.
Members
_closeAfterDataChange
multiSelectEditor._closeAfterDataChange
Overrides the base flag to keep the editor open after data changes — multiselect saves on each selection.
dropdownContainerElement
multiSelectEditor.dropdownContainerElement
The container element passed to DropdownController that holds the dropdown UI.
dropdownController
multiSelectEditor.dropdownController
The controller responsible for rendering and managing the dropdown list.
EDITOR_TYPE
MultiSelectEditor.EDITOR_TYPE
Returns the unique editor type identifier for the multiselect editor.
Methods
bindEvents
multiSelectEditor.bindEvents()
Wires dropdown check/uncheck hooks, scroll hooks, destroy cleanup, and the search filter trigger.
close
multiSelectEditor.close()
Hides the dropdown element, unregisters keyboard shortcuts, and stops the search input listener.
createElements
multiSelectEditor.createElements()
Creates the outer container, dropdown container, accessibility attributes, and the DropdownController instance.
destroy
multiSelectEditor.destroy()
Closes the editor and resets the dropdown controller state, releasing DOM resources.
finishEditing
multiSelectEditor.finishEditing()
Delegates to the base finishEditing to complete saving or restoring the cell value.
focus
multiSelectEditor.focus()
Focuses the first dropdown item when search input is disabled, or the search input otherwise.
getInputElement
multiSelectEditor.getInputElement()
Returns the underlying search input element from the dropdown’s input controller.
getValue
multiSelectEditor.getValue()
Returns the currently selected values as an array to be written to the cell.
open
multiSelectEditor.open()
Shows the dropdown, positions it next to the edited cell, registers keyboard shortcuts, and focuses the appropriate element.
prepare
multiSelectEditor.prepare()
Prepares the editor for the given cell, resets the dropdown, syncs the current selection, and applies cell settings.
refreshDimensions
multiSelectEditor.refreshDimensions()
Repositions the dropdown next to the edited cell; closes the editor if the cell is no longer rendered.
setValue
multiSelectEditor.setValue()
No-op override — MultiSelectEditor saves data immediately on each check/uncheck event.