Context Menu
A reusable context menu component is a configurable component that appears when a user right-clicks in an editable area. It receives a list of configurable menu items, and clicking on a menu item triggers an onClick event. This event passes along the name of the item that was clicked.
Variants
Props
Props | Datatype | Values/Example |
---|---|---|
xAxis | number | 0 |
yAxis | number | 0 |
menuItems | Array {onClick: function displayText: string disabled:boolean } | -- |
noOfRows | number | 0 |
noOfColumns | number | 0 |
mouseX | number | 0 |
mouseY | number | 0 |