npm.nicfv.com

    Class TextInput

    A text input element for an HTML form.

    Hierarchy

    Index

    Constructors

    Properties

    control: HTMLInputElement

    The form control element.

    Data options for this form input.

    Methods

    • Add an event listener to the control element.

      Type Parameters

      • K extends keyof HTMLElementEventMap

      Parameters

      • type: K

        The type of event listener

      • listener: () => void

        A function to callback every time the event is raised

      Returns void

    • Get the parent element to append onto the form.

      Returns HTMLDivElement

      The container <div> element

    • Get the text of the associated label.

      Returns string

      The current text value

    • Get the value of this input.

      Returns string

      The current value

    • Set the text of the associated label.

      Parameters

      • text: string

        The new text value

      Returns void

    • Set the value of this input.

      Parameters

      • value: string

        The new value

      Returns void

    MMNEPVFCICPMFPCPTTAAATR