Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InputContainer

Hierarchy

  • InputContainer

Index

Properties

Static ELEMENTS

ELEMENTS: string[] = ['div.lto-calendar-input','div.lto-camera','div.lto-code-reader','div.lto-drop-area','div.lto-map','div.lto-reel','div.lto-trigger','input.lto-email','input.lto-phone','input.lto-slider','input.lto-spinner','input.lto-textInput','textarea.lto-textarea',]

Static Private ELEMENTS_AS_STRING

ELEMENTS_AS_STRING: string = InputContainer.ELEMENTS.join(",")

Methods

Static addValuesToAttributes

  • addValuesToAttributes(element: HTMLElement, attributes: Attr): SubmitState

Static getAll

  • getAll(container: HTMLFormElement, submit: HTMLButtonElement): Promise<Attr>
  • Returns a {@link Promise} containing the attributes of the input elements

    Parameters

    • container: HTMLFormElement
    • submit: HTMLButtonElement

    Returns Promise<Attr>

Static Private getNormalOrDataAttribute

  • getNormalOrDataAttribute(element: HTMLElement, name: string): string | null

Static Private getRequiredAttribute

  • getRequiredAttribute(element: HTMLElement): boolean

Static setRequiredAttribute

  • setRequiredAttribute(element: HTMLElement, required: string | boolean | null | undefined): void

Generated using TypeDoc