DrawingContextMenu
Documentation / @elitechart/core / DrawingContextMenu
Defined in: ui/drawing-context-menu.ts:128
Right-click context menu for a selected drawing. Mounts into a
supplied container; the chart calls showFor(binding, pos) on
pointer events.
Example
Constructors
Constructor
Defined in: ui/drawing-context-menu.ts:134
Parameters
config
Returns
DrawingContextMenu
Accessors
element
Get Signature
Defined in: ui/drawing-context-menu.ts:174
Testing hook.
Returns
HTMLElement
visible
Get Signature
Defined in: ui/drawing-context-menu.ts:169
Whether the menu is currently open.
Returns
boolean
Methods
close()
Defined in: ui/drawing-context-menu.ts:162
Close the menu.
Returns
void
destroy()
Defined in: ui/drawing-context-menu.ts:178
Returns
void
showFor()
Defined in: ui/drawing-context-menu.ts:144
Show the menu at pos (local to the mount) for the bound drawing.
Parameters
binding
pos
Returns
void