The editor for which to create this menu.
The DOM document for which to make this context menu.
Position of the menu. The context menu may ignore this position if the menu would appear off-screen.
Position of the menu.
The prefix. This is the data which is currently present in the document and that has to be completed.
An array of possible completions.
Function to call when the menu is dismissed.
The jQuery equivalent of menu.
The jQuery equivalent of toggle.
The Element
that contains the list of menu items. This Element
is
an HTML list. It is created at construction of the object and deleted only
when the object is destroyed. This is what the ContextMenu.render
method should populate.
The toggle element of the dropdown menu. Even though it is not shown for our menus, it is necessary, and plays a role in how the menu works.
Whether the completion menu has been focused.
Event handler for focus events on the toggle. Bootstrap focuses the toggle when the dropdown is shown. This can cause problems on some platforms if the dropdown is meant to have a descendant focused. (IE in particular grants focus asynchronously.) This method can be used to focus the proper element.
Generated using TypeDoc
A menu for displaying completions.