The editor for which the manager is created.
The editor for which the manager is created.
Computes where a menu should show up, depending on the event that triggered it.
The event that triggered the menu. If no event is passed, it is assumed that the menu was not triggered by a mouse event.
Only used when the event was not triggered by a mouse event
(e === undefined
). If bottom
is true, use the bottom of the DOM
entity used to compute the left
coordinate. Otherwise, use its middle
to determine the left
coordinate.
The top and left coordinates where the menu should appear.
This is the default menu handler called when the user right-clicks in the contents of a document or uses the keyboard shortcut.
The menu handler which is invoked when a user right-clicks on an element start or end label is defined by the decorator that the mode is using.
Dismiss the menu currently shown. If there is no menu currently shown, does nothing.
Display a context menu.
The class to use to create the menu.
The position of the menu.
The position of the menu.
The menu items to show.
If true, don't include in the menu any operation that
would trigger a Transformation
.
Brings up a typeahead popup.
The position of the popup.
The position of the popup.
The width of the popup.
Placeholder text to put in the input field.
Options for Twitter Typeahead.
The callback to be called upon dismissal. It will be called with the object that was selected, if any.
The popup that was created.
Make the menu items that should appear in all contextual menus.
The element for which we are creating the menu.
Menu items.
Makes an HTML link to open the documentation of an element.
A <a>
element that links to the documentation.
Make a standardized menu item for a specific action. This method formats the menu item and sets an even handler appropriate to invoke the action's event handler.
The action for which we make a menu item.
The data that accompanies the action.
This parameter determines whether we are creating an item for
a start label (true
) an end label (false
) or
something which is neither a start or end label
(undefined
).
A HTML element which is fit to serve as a menu item.
Compute an appropriate position for a context menu, and display it. This is a convenience function that essentially combines computeMenuPosition and displayContextMenu.
See displayContextMenu.
See displayContextMenu.
See displayContextMenu.
See computeMenuPosition.
See computeMenuPosition.
Compute an appropriate position for a typeahead popup, and display it. This is a convenience function that essentially combines computeMenuPosition and displayTypeaheadPopup.
See computeMenuPosition.
See computeMenuPosition.
The popup that was created.
Generated using TypeDoc
Manages the editing menus for a specific editing view. An "editing menu" is a menu that appears in the editing pane. The context menu and completion menu are editing menus.
Only one editing menu may be shown at any given time.