Zebra API Doc

zebra.ui.HtmlTextInput Class

HTML input element wrapper class. The class can be used as basis class to wrap HTML elements that can be used to enter a textual information.

Constructor

zebra.ui.HtmlTextInput

(
  • text
  • element
)

Parameters:

  • text String

    a text the text input component has to be filled with

  • element String

    an input element name

Methods

getValue

() String

Get a text of the text input element


Return: String

a text of the text input element

setAttribute

(
  • name
  • value
)

Inherited from zebra.ui.HtmlElement:

Set the specified attribute of the wrapped HTML element

Parameters:

  • name String

    a name of attribute

  • value String

    a value of the attribute

setColor

(
  • c
)

Inherited from zebra.ui.HtmlElement:

Set the CSS color of the wrapped HTML element

Parameters:

  • c String

    a color

setContent

(
  • an
)

Inherited from zebra.ui.HtmlElement:

Set the inner content of the wrapped HTML element

Parameters:

  • an String

    inner content

setFont

(
  • f
)

Inherited from zebra.ui.HtmlElement:

Set the CSS font of the wrapped HTML element

Parameters:

setStyle

(
  • a
  • a
)

Inherited from zebra.ui.HtmlElement:

Apply the given CSS style to the wrapped HTML element

Parameters:

  • a String

    name of the CSS style

  • a String

    value the CSS style has to be set

setStyles

(
  • styles
)

Inherited from zebra.ui.HtmlElement:

Apply the given set of CSS styles to the wrapped HTML element

Parameters:

  • styles Object

    a dictionary of CSS styles

setValue

(
  • t
)

Set the text

Parameters:

  • t String

    a text

Attributes

element

HTMLElement readonly

Inherited from zebra.ui.HtmlElement:

Reference to HTML element the UI component wraps