Support Menu

Class NumericSpinner

This class will create a numeric spinner 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

getFloatValue

  • getFloatValue(): number

getIntValue

  • getIntValue(): number

reset

  • reset(): void

setValue

  • setValue(value: number): void

Constructors

constructor

  • new NumericSpinner(onChange?: function, min?: number, max?: number): NumericSpinner
  • Create a new numeric spinner.

    Parameters

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

      will be called every time the numeric spinner change it's value. this will be the NumericSpinner instance.

        • (): void
        • Returns void

    • Default value min: number = 0

      will be the minimum value selectable by the spinner

    • Optional max: number

      will be the maximum value selectable by the spinner

    Returns NumericSpinner

Hierarchy

  • NumericSpinner