Skip to main content

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

PropsDatatypeValues/Example
xAxisnumber0
yAxisnumber0
menuItemsArray
{onClick: function
displayText: string
disabled:boolean }
--
noOfRowsnumber0
noOfColumnsnumber0
mouseXnumber0
mouseYnumber0