Controlling the Open State
The MultiColumnComboBox enables you to control the state of its options list.
Programmatic Toggle
You can enable the user to manually toggle between the open and close state of the options list by invoking the toggle
method. It accepts a single parameter that specifies whether the popup will be opened or closed. If true
is provided, the options list will be opened. If false
is provided, it will be closed.
You can also retrieve the current open state of the options list by using the isOpen
getter.
The following example demonstrates how to configure an initially opened MultiColumnComboBox.
Preventing Opening and Closing
The open
and close
events are emitted right before the options list is about to open or close. To prevent the corresponding action, call the preventDefault
method of the event argument.
The following example demonstrates how to prevent the closing of the options list.