Support Menu

Class RadioButton

This class will create a radio button meant to be used inside the AdvancedSearch component.

It can be, more specifically, used for external code using the AdvancedSearchEvents.buildingAdvancedSearch

Index

Methods

build

  • build(): HTMLElement

getElement

  • getElement(): HTMLElement

getLabel

  • getLabel(): HTMLLabelElement

getRadio

  • getRadio(): HTMLInputElement

isSelected

  • isSelected(): boolean

reset

  • reset(): void

Constructors

constructor

  • new RadioButton(onChange?: function, label: string): RadioButton
  • Create a new Radio button.

    Parameters

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

      will be called every time the radio button change it's value. this will be the RadioButton instance.

        • (): void
        • Returns void

    • label: string

      The label for the choice.

    Returns RadioButton

Hierarchy

  • RadioButton