Skip to content

MultiSelectEditor

Description

Initializes the editor, creates DOM elements, and binds dropdown and hook events.

Members

_closeAfterDataChange

Source code

multiSelectEditor._closeAfterDataChange

Overrides the base flag to keep the editor open after data changes — multiselect saves on each selection.

Source code

multiSelectEditor.dropdownContainerElement

The container element passed to DropdownController that holds the dropdown UI.

Source code

multiSelectEditor.dropdownController

The controller responsible for rendering and managing the dropdown list.

EDITOR_TYPE

Source code

MultiSelectEditor.EDITOR_TYPE

Returns the unique editor type identifier for the multiselect editor.

Methods

bindEvents

Source code

multiSelectEditor.bindEvents()

Wires dropdown check/uncheck hooks, scroll hooks, destroy cleanup, and the search filter trigger.

close

Source code

multiSelectEditor.close()

Hides the dropdown element, unregisters keyboard shortcuts, and stops the search input listener.

createElements

Source code

multiSelectEditor.createElements()

Creates the outer container, dropdown container, accessibility attributes, and the DropdownController instance.

destroy

Source code

multiSelectEditor.destroy()

Closes the editor and resets the dropdown controller state, releasing DOM resources.

finishEditing

Source code

multiSelectEditor.finishEditing()

Delegates to the base finishEditing to complete saving or restoring the cell value.

focus

Source code

multiSelectEditor.focus()

Focuses the first dropdown item when search input is disabled, or the search input otherwise.

getInputElement

Source code

multiSelectEditor.getInputElement()

Returns the underlying search input element from the dropdown’s input controller.

getValue

Source code

multiSelectEditor.getValue()

Returns the currently selected values as an array to be written to the cell.

open

Source code

multiSelectEditor.open()

Shows the dropdown, positions it next to the edited cell, registers keyboard shortcuts, and focuses the appropriate element.

prepare

Source code

multiSelectEditor.prepare()

Prepares the editor for the given cell, resets the dropdown, syncs the current selection, and applies cell settings.

refreshDimensions

Source code

multiSelectEditor.refreshDimensions()

Repositions the dropdown next to the edited cell; closes the editor if the cell is no longer rendered.

setValue

Source code

multiSelectEditor.setValue()

No-op override — MultiSelectEditor saves data immediately on each check/uncheck event.