Skip to content

Multiselect.setOptionContextmenuHandler method

Multiselect › setOptionContextmenuHandler

Unofficial

Set the context menu handler of the multiselect.

Signature:

setOptionContextmenuHandler(onOptionContextmenu: (this: Multiselect, menu: Menu, value: string, ctx: MultiselectOptionContextMenuContext) => void): this

Parameters:

Parameter Type Description
onOptionContextmenu (this: Multiselect, menu: Menu, value: string, ctx: MultiselectOptionContextMenuContext) => void the function to handle the context menu event.

Returns: thisthe multiselect.