Skip to main content

IDropdownApi

Interface

Dropdown menu API

Methods

applyOptions

Apply options to the dropdown menu. Note that this method does not affect the menu's alignment. To change the alignment, you should remove and recreate the menu as follows:

myCustomDropdownApi.remove();
widget.createDropdown(optionsWithDifferentAlignment);

Signature

applyOptions(options: Partial<Omit<DropdownParams, "align">>) => void

Parameters

NameTypeDescription
optionsPartial<Omit<DropdownParams, "align">>Partial options for the dropdown menu

Returns

void


remove

Remove the dropdown menu.

Signature

remove() => void

Returns

void