Options
Menu

Hierarchy

  • UpDataEditControl
    • UpCheckEditControl

Index

Properties

element

element: HTMLInputElement

Accessors

required

  • get required(): boolean
  • set required(value: boolean): void
  • Check if input is required.

    Returns boolean

  • Set input to required / not required.

    Parameters

    • value: boolean

    Returns void

Methods

check

  • check(): void
  • Set the state of the element to checked.

    Returns void

checkValidity

  • checkValidity(): Promise<ValidationInfo>
  • Returns Promise<ValidationInfo>

getTitle

  • getTitle(): string
  • Get the title of the input element.

    Returns string

getValue

  • getValue(): string
  • Get the value of the input element. This does not correspond to the checked state of the element.

    Returns string

isChecked

  • isChecked(): boolean
  • Get the elements checked state.

    Returns boolean

setTitle

  • setTitle(value: string): void
  • Set the title of the input element.

    Parameters

    • value: string

      New title for the checkbox

    Returns void

setValue

  • setValue(value: boolean | 0 | 1 | "0" | "1" | "true" | "false", settings?: { triggerOnchange: "disabled" | "strict" | "always" }): void
  • Set the value of a checkbox i.e. mark as checked or unchecked.

    Parameters

    • value: boolean | 0 | 1 | "0" | "1" | "true" | "false"

      Mark the control as checked/unchecked

    • Optional settings: { triggerOnchange: "disabled" | "strict" | "always" }
      • triggerOnchange: "disabled" | "strict" | "always"

    Returns void

toggle

  • toggle(): void
  • Toggle the state of the element.

    Returns void

uncheck

  • uncheck(): void
  • Set the state of the element to unchecked.

    Returns void