Class Checkbox

Index

Methods

build

  • build(): HTMLElement

getElement

  • getElement(): HTMLElement

getLabel

  • getLabel(): HTMLElement

getValue

  • getValue(): string

isSelected

  • isSelected(): boolean

reset

  • reset(): void

select

  • select(triggerChange?: boolean): void

toggle

  • toggle(): void

Constructors

constructor

  • new Checkbox(onChange?: function, label: string, ariaLabel?: string, labelSuffix?: string): Checkbox
  • Parameters

    • Default value onChange: function = (checkbox: Checkbox) => {}
    • label: string
    • Optional ariaLabel: string
    • Optional labelSuffix: string

    Returns Checkbox

Hierarchy

  • Checkbox

Implements

  • IFormWidgetWithLabel
  • IFormWidgetSelectable