Class type Goog.​Ui.​popupMenu

class type popupMenu = object..end


method attach : 
(#Dom_html.element as 'a) Js.t ->
Goog.Positioning.corner Js.opt ->
Goog.Positioning.corner Js.opt ->
bool Js.t Js.opt -> Js.t Js.opt -> unit Js.meth

Attaches the menu to a new popup position and anchor element. A menu can only be attached to an element once, since attaching the same menu for multiple positions doesn't make sense.

method decorateInternal : 
'b. (#Dom_html.element as 'b) Js.t -> unit Js.meth

Decorate an existing HTML structure with the menu. Menu items will be constructed from elements with classname 'goog-menuitem', separators will be made from HR elements.

method detach : 'c. (#Dom_html.element as 'c) Js.t -> unit Js.meth

Detaches a menu from a given element.

method detachAll : unit Js.meth

Detaches all listeners

method disposeInternal : unit Js.meth
method enterDocument : unit Js.meth

The menu has been added to the document.

method getAttachedElement : Dom_html.element Js.t Js.meth

Returns The current element where the popup is anchored, if it's visible.

method getToggleMode : bool Js.t Js.meth

Gets whether the menu is in toggle mode Returns toggle.

method hide : unit Js.meth

Hides the menu.

method setToggleMode : bool Js.t -> unit Js.meth

Sets whether the menu should toggle if it is already open. For context menus this should be false, for toolbar menus it makes more sense to be true.

method showAt : 
int -> int -> Goog.Positioning.corner Js.opt -> unit Js.meth

Shows the menu immediately at the given client coordinates.

method showAtElement : 
(#Dom_html.element as 'd) Js.t ->
Goog.Positioning.corner ->
Goog.Positioning.corner Js.opt -> unit Js.meth

Shows the menu immediately attached to the given element

method showWithPosition : 
Goog.Positioning.abstractPosition Js.t ->
Goog.Positioning.corner Js.opt -> Js.t Js.opt ->
(#Dom_html.element as 'e) Js.t Js.opt -> unit Js.meth

Show the menu using given positioning object.