@kvaser/canking-api
Version:
CanKing API to communicate with the CanKing service using Node.js.
46 lines (23 loc) • 747 B
Markdown
[**Kvaser CanKing GUI Extensions SDK v7.5.1**](../../README.md)
***
[Kvaser CanKing GUI Extensions SDK](../../modules.md) / [controls](../README.md) / 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`](../type-aliases/ContextMenuOption.md)[]
The menu item options.