Class type Goog.​Ui.​filteredMenu

class type filteredMenu = object..end

Inherits


method createDom : unit Js.meth
method decorateInternal : 
'a. (#Dom_html.element as 'a) Js.t -> unit Js.meth
method disposeInternal : unit Js.meth
method getAllowMultiple : bool Js.t Js.meth

Returns Whether multiple items can be entered comma separated.

method getContentElement : Dom_html.element Js.t Js.meth
method getEnteredItems : Js.js_string Js.t Js.js_array Js.t Js.meth

Gets a list of items entered in the search box. Returns The entered items.

method getFilter : Js.js_string Js.t Js.meth

Returns the filter string. Returns Current filter or an an empty string.

method getFilterFromIndex : int Js.meth

Returns the index of first item that is affected by the filter. Returns Index of first item that is affected by filter.

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

Returns the filter input element. Returns Input element.

method getFilterLabel : Js.js_string Js.t Js.meth

Returns The filter label.

method handleFilterEvent : Goog.Events.browserEvent Js.t -> unit Js.meth

Handles filter input events.

method handleKeyEvent : Goog.Events.keyEvent Js.t -> bool Js.t Js.meth

Handles the menu's behavior for a key event. The highlighted menu item will be given the opportunity to handle the key behavior. Returns Whether the event was handled.

method hasPersistentVisibility : 
'b. (#component as 'b) Js.t -> bool Js.t Js.meth

Returns whether the specified child should be affected (shown/hidden) by the filter criteria. Returns Whether the menu item is persistent.

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

Sets whether multiple items can be entered comma separated.

method setFilter : Js.js_string Js.t Js.opt -> unit Js.meth

Sets the filter string.

method setFilterFromIndex : int -> unit Js.meth

Sets the index of first item that should be affected by the filter. Menu items with a lower index will not be affected by the filter.

method setFilterLabel : Js.js_string Js.t Js.opt -> unit Js.meth

Sets the filter label (the label displayed in the filter input element if no text has been entered).

method setHighlightedIndex : int -> unit Js.meth

Sets the highlighted index, unless the HIGHLIGHT event is intercepted and cancelled. -1 = no highlight. Also scrolls the menu item into view.

method setPersistentVisibility : 
'c. (#menuItem as 'c) Js.t -> bool Js.t -> unit Js.meth

Sets whether the specified child should be affected (shown/hidden) by the filter criteria.

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