Class type Goog.​Ui.​menu

class type menu = object..end

Inherits


method getCssClass : Js.js_string Js.t Js.meth
method containsElement : 
'a. (#Dom_html.element as 'a) Js.t -> bool Js.t Js.meth

Returns whether the provided element is to be considered inside the menu for purposes such as dismissing the menu on an event.

method addItem : 
'b 'c.
((#menuItem as 'b) Js.t, (#menuSeparator as 'c) Js.t)
Goog.Tools.Union.t -> unit Js.meth

Adds a new menu item at the end of the menu.

method addItemAt : 
'd 'e.
((#menuItem as 'd) Js.t, (#menuSeparator as 'e) Js.t)
Goog.Tools.Union.t -> int -> unit Js.meth

Adds a new menu item at a specific index in the menu.

method removeItem : 
'f 'g.
((#menuItem as 'f) Js.t, (#menuSeparator as 'g) Js.t)
Goog.Tools.Union.t -> unit Js.meth

Removes an item from the menu and disposes of it.

method removeItemAt : int -> unit Js.meth

Removes a menu item at a given index in the menu and disposes of it.

method getItemAt : 
int ->
(menuItem Js.t, menuSeparator Js.t) Goog.Tools.Union.t
Js.opt Js.meth

Returns a reference to the menu item at a given index.

method getItemCount : int Js.meth

Returns the number of items in the menu (including separators).

method getItems : menuItem Js.t Js.js_array Js.t Js.meth

Returns the menu items contained in the menu.

method setPosition : 
(int, Goog.Math.coordinate Js.t) Goog.Tools.Union.t ->
int Js.opt -> unit Js.meth

Sets the position of the menu relative to the view port.

method getPosition : Goog.Math.coordinate Js.t Js.opt Js.meth

Gets the page offset of the menu, or null if the menu isn't visible

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

Sets whether the menu can automatically move focus to its key event target when it is set to visible.

method getAllowAutoFocus : bool Js.t Js.meth

Return whether the menu can automatically move focus to its key event target when it is set to visible.

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

Sets whether the menu will highlight disabled menu items or skip to the next active item.

method getAllowHighlightDisabled : bool Js.t Js.meth

Return whether the menu will highlight disabled menu items or skip to the next active item.

method highlightNextPrefix : Js.js_string Js.t -> bool Js.t Js.meth

Highlights the next item that begins with the specified js_string t. If no (other) item begins with the given js_string t, the selection is unchanged.