Support Menu

Class TextInput

Class TextInput

A text input widget with standard styling.

Index

Methods

build

  • build(): HTMLElement

getElement

  • getElement(): HTMLElement

getInput

  • getInput(): HTMLInputElement

getValue

  • getValue(): string

reset

  • reset(): void

setValue

  • setValue(value: string): void

Constructors

constructor

  • new TextInput(onChange?: function, name?: string): TextInput
  • Creates a new TextInput.

    Parameters

    • Default value onChange: function = (textInput: TextInput) => {}

      The function to call when the value entered in the text input changes. This function takes the current TextInput instance as an argument.

    • Optional name: string

      The text to display in the text input label.

    Returns TextInput

Hierarchy

  • TextInput

Implements