Class type Goog.Ui.autoComplete
class type autoComplete = object..end
This is the central manager class for an AutoComplete instance. Inherits
method getRenderer : Goog.Events.eventTarget Js.meth
Returns the renderer that renders/shows/highlights/hides the autocomplete menu.
Returns Renderer used by the this widget.
method handleEvent : Goog.Events.event Js.t -> unit Js.meth
Generic event handler that handles any events this object is listening to.
method setMaxMatches : int -> unit Js.meth
Sets the max number of matches to fetch from the Matcher.
method setAutoHilite : bool Js.t -> unit Js.meth
Sets whether or not the first row should be highlighted by default.
method setAllowFreeSelect : bool Js.t -> unit Js.meth
Sets whether or not the up arrow can unhilite all rows.
method setTriggerSuggestionsOnUpdate : bool Js.t -> unit Js.meth
Sets whether or not to request new suggestions immediately after completion of a suggestion.
method setToken :
Js.js_string Js.t -> Js.js_string Js.t Js.opt -> unit Js.meth
Sets the token to match against. This triggers calls to the Matcher to fetch the matches (up to maxMatches), and then it triggers a call to renderer.renderRows().
method getTarget : Js.js_string Js.t Js.meth
Gets the current target HTML node for displaying autocomplete .
Returns The current target HTML node for displaying autocomplete .
method setTarget : 'a. (#Dom_html.element as 'a) Js.t -> unit Js.meth
Sets the current target HTML node for displaying autocomplete . Can be an implementation specific definition of how to display in relation to the target node.
method isOpen : bool Js.t Js.meth
Whether the autocomplete's renderer is open.
Returns Whether the autocomplete's renderer is open.
method hiliteNext : bool Js.t Js.meth
Moves the hilite to the next row, or does nothing if we're already at the end of the current set of matches. Calls renderer.hiliteId() when there's something to do.
Returns Returns true on a successful hilite.
method hilitePrev : bool Js.t Js.meth
Moves the hilite to the previous row, or does nothing if we're already at the beginning of the current set of matches. Calls renderer.hiliteId() when there's something to do.
Returns Returns true on a successful hilite.
method hiliteId : int -> bool Js.meth
Hilites the id if it's valid, otherwise does nothing.
Returns Whether the id was hilited.
method selectHilited : bool Js.t Js.meth
If there are any current matches, this passes the hilited row data to selectionHandler.selectRow()
Returns Whether there are any current matches.
method dismiss : unit Js.meth
Clears out the token, rows, and hilite, and calls renderer.dismiss()
method dismissOnDelay : unit Js.meth
Call a dismiss after a delay, if there's already a dismiss active, ignore.
method cancelDelayedDismiss : unit Js.meth
Call a dismiss after a delay, if there's already a dismiss active, ignore.
method disposeInternal : unit Js.meth
Cleans up the autocomplete object.
method renderRows :
Js.js_string Js.t array -> bool Js.t Js.opt -> unit Js.meth
Renders the rows and adds highlighting.
