Class type Goog.​Ui.​AutoComplete.​inputHandler

class type inputHandler = object..end

Class goog.ui.AutoComplete.InputHandler Inherits


method attachAutoComplete : Goog.Ui.autoComplete Js.t -> unit Js.meth

Attach an instance of an AutoComplete

method getAutoComplete : Goog.Ui.autoComplete Js.t Js.meth

Returns the associated autocomplete instance. Returns The associated autocomplete instance.

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

Returns the current active element. Returns The currently active element.

method getValue : Js.js_string Js.t Js.meth

Returns the value of the current active element. Returns The value of the current active element.

method setValue : int -> unit Js.meth

Sets the value of the current active element.

method getCursorPosition : int Js.meth

Returns the current cursor position. Returns The index of the cursor position.

method setCursorPosition : int -> unit Js.meth

Sets the cursor at the given position.

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

Attaches the input handler to an element such as a textarea or input box. The element could basically be anything as long as it exposes the correct interface and events.

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

Detaches the input handler from the provided element.

method disposeInternal : unit Js.meth

Disposes of the input handler.

method setSeparators : Js.js_string Js.t -> unit Js.meth

Sets the entry separator characters.

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

Sets whether to flip the orientation of up & down for hiliting next and previous autocomplete entries.

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

Sets whether auto-completed tokens should be wrapped with whitespace.

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

Sets whether new tokens should be generated from literals. That is, should hello'world be two tokens, assuming ' is a literal?

method setTrimmingRegExp : Js.regExp Js.t -> unit Js.meth

Sets the regular expression used to trim the tokens before passing them to the matcher: every substring that matches the given regular expression will be removed. This can also be set to null to disable trimming.

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

Sets whether we will prevent the default input behavior (moving focus to the next focusable element) on TAB.

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

Sets whether separators perform autocomplete.

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

Sets whether separators perform autocomplete.

method getThrottleTime : int Js.meth

Gets the time to wait before updating the results. If the update during typing flag is switched on, this delay counts from the last update, otherwise from the last keypress. Returns Throttle time in milliseconds.

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

Sets whether a row has just been selected.

method setThrottleTime : int -> unit Js.meth

Sets the time to wait before updating the results.

method getUpdateDuringTyping : bool Js.t Js.meth

Gets whether the result list is updated during typing. Returns Value of the flag.

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

Sets whether the result list should be updated during typing.

method update : bool Js.t Js.opt -> unit Js.meth

Checks if an update has occurred and notified the autocomplete of the new token.