Class type Goog.​Ui.​subMenu

class type subMenu = object..end


method enterDocument : unit Js.meth
method exitDocument : unit Js.meth
method disposeInternal : unit Js.meth
method setHighlighted : bool Js.t -> unit Js.meth

Dismisses the submenu on a delay, with the result that the user needs less accuracy when moving to submenus. Alternate implementations could use geometry instead of a timer.

method showSubMenu : unit Js.meth

Show the submenu and ensure that all siblings are hidden.

method dismissSubMenu : unit Js.meth

Dismisses the menu and all further submenus.

method clearTimers : unit Js.meth

Clears the show and hide timers for the sub menu.

method setVisible : bool Js.t -> bool Js.t Js.opt -> bool Js.t Js.meth

Sets the menu item to be visible or invisible.

method handleKeyEvent : 
'a. (#Goog.Events.event as 'a) Js.t -> bool Js.t Js.meth

Handles a key event that is passed to the menu item from its parent because it is highlighted. If the right key is pressed the sub menu takes control and delegates further key events to its menu until it is dismissed OR the left key is pressed.

method handleMouseOver : 
'b. (#Goog.Events.event as 'b) Js.t -> unit Js.meth

Sets a timer to show the submenu and then dispatches an ENTER event to the parent menu.

method performActionInternal : 
'c. (#Goog.Events.event as 'c) Js.t -> bool Js.t Js.meth

Overrides the default mouseup event handler, so that the ACTION isn't dispatched for the submenu itself, instead the submenu is shown instantly.

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

Sets whether the submenu is aligned at the end of the parent menu.

method isAlignedToEnd : bool Js.t Js.meth

Determines whether the submenu is aligned at the end of the parent menu.

method addItem : menuItem Js.t -> unit Js.meth

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

method addItemAt : menuItem Js.t -> float -> unit Js.meth

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

method removeItem : menuItem Js.t -> unit Js.meth

Removes an item from the menu and disposes it.

method removeItemAt : float -> unit Js.meth

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

method getItemAt : float -> component Js.meth

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

method getItemCount : float Js.t Js.meth

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

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

Returns the menu items contained in the sub menu.

method getMenu : menu Js.t Js.meth

Gets a reference to the submenu's actual menu.

method setMenu : menu Js.t -> unit Js.meth

Sets the submenu to a specific menu.

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

Returns true if the provided element is to be considered inside the menu for purposes such as dismissing the menu on an event. This is so submenus can make use of elements outside their own DOM.

method setPositionAdjustable : bool Js.t -> unit Js.meth
method isPositionAdjustable : bool Js.t Js.meth

Returns Whether this submenu is adjustable.