Zebra API Doc

zebra.ui.HtmlTextField Class

HTML input text element wrapper class. The class wraps standard HTML text field and represents it as zebra UI component.

Constructor

zebra.ui.HtmlTextField

(
  • [text]
)

Parameters:

  • [text] String optional

    a text the text field component has to be filled with

Methods

getValue

() String

Inherited from zebra.ui.HtmlTextInput:

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
)

Inherited from zebra.ui.HtmlTextInput:

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