ve.ContextMenu

ve.Feature. ve.ContextMenu

Refer to ve.Feature for methods or fields inherited from the parent, such as automatic destructuring.

Represents a ContextMenu Feature that contains a set of components. ve.Window instances are stored in .windows. Recursive.

  • Functional binding: veContextMenu().
  • Inherits feature: ve.Window

The immediate ve.Button element bound to the ContextMenu instance is contained in .element.

Constructor:
  • arg0_components_obj: Object<ve.Component>
  • arg1_options: Object
    • .anchor="left"/"right" - Either 'left'/'right'. Position defaults to the side that has the most space.
    • .button_options: ve.Button.options
    • .id: string
    • .mode="static_ui" - Either 'static_ui'/'static_window'/'window'.
    • .x=HTML.mouse_x: number
    • .y=HTML.mouse_y: number
Methods:

Constructor

new ve.ContextMenu()

Source:

Extends

Members

instances :Array.<ve.Feature>

Overrides:
Source:
Type:

Methods

addComponents(arg0_components_obj)

Adds components to the present this.element.

Overrides:
Source:
Parameters:
Name Type Description
arg0_components_obj Object

close()

Alias for this.remove().

Overrides:
Source:

remove()

Removes the ve.Feature from its static .instances field in addition to unmounting the feature from the DOM.

Overrides:
Source:

removeComponents(arg0_components_obj)

Removes components from the present this.element.

Overrides:
Source:
Parameters:
Name Type Description
arg0_components_obj Object

updateOwner()

Iterates over all present Vercengen components in ve.Feature and sets their owner to the current Feature if they do not already have populated .owner/.owners fields.

Overrides:
Source: