Class type Goog.​Ui.​labelInput

class type labelInput = object..end


method createDom : unit Js.meth

Creates the DOM nodes needed for the label input.

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

Decorates an existing HTML input element as a label input. If the element has a "label" attribute then that will be used as the label property for the label input object.

method enterDocument : unit Js.meth

Called when the DOM for the component is for sure in the document.

method exitDocument : unit Js.meth

Called when the DOM for the component is removed from the document or when the component no longer is managing the DOM.

method disposeInternal : unit Js.meth
method hasChanged : bool Js.t Js.meth

Returns Whether the value has changed been changed by the user.

method clear : unit Js.meth

Clears the value of the input element without resetting the default text.

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

Use this to set the value through script to ensure that the label state is up to date

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

Returns the current value of the text box, returning an empty js_string t if the search box is the default value Returns The value of the input box.

method focusAndSelect : unit Js.meth

This method focuses the input and if selects all the text. If the value hasn't changed it will set the value to the label so that the label text is selected.