Kvaser CanKing GUI Extensions SDK v7.4.0


Kvaser CanKing GUI Extensions SDK / controls / ContextMenuProps

Interface: ContextMenuProps

Properties of the ContextMenu React component.

Properties

children?

optional children: ReactNode

Children nodes that will be using this context menu.


onSelect()

onSelect: (value) => void

A callback that will be called when the user selects one of the menu items in this context menu.

Parameters

value

number

Value of the selected menu option.

Returns

void


options

options: ContextMenuOption[]

The menu item options.