Class: ContextMenuOption

The context menu options in a format usable for jquery-context-menu build()

Constructors

new ContextMenuOption()

new ContextMenuOption(): ContextMenuOption

Returns

ContextMenuOption

Properties

callback()

callback: (key, options) => void

The onClick callback of the Context Menu Option.

Parameters

key: string

Name of the element that triggered the onClick()

options: any

The options data from jquery-context-menu onClick()

Returns

void


disabled

disabled: boolean

When set to true this will disable and gray out the Context Menu Option


icon?

optionalicon: string

Name of the icon that will display on the Context Menu Option


items

items: ContextMenuItemMap

Child Context Menu Items, when a user hovers over this option the child options will show up to the right.


name

name: string

Text that will display on the Context Menu Option


rwcIcon?

optionalrwcIcon: string

The name of the RWC icon that will display for the item

Note that if icon is also set, rwcIcon will be ignored


rwcIconClass?

optionalrwcIconClass: string

Class that will be applied to rwcIcon, if set


rwcIconColor?

optionalrwcIconColor: string

Color that will be applied to rwcIcon, if set


visible

visible: boolean

When set to false this will hide the Context Menu Option