Skip to content

4.1 Slider

Jonas de Luna Skulberg edited this page Oct 15, 2023 · 3 revisions

Slider

A number-value slider used for interactivity.

Extends:

  • none

Implements:

Parameters:

Required:

  • none

Optional:

  • minValue: number Minimum value of the slider.
  • maxValue: number Maximum value of the slider.

Default Parameters:

minValue: -5,
maxValue: 5,

Implemented Methods:

  • none

Methods

  • addObserver(observer: (value: number) => void) Adds an onChange listener to the slider.
  • removeObserver(observer: (value: number) => void) Removes an observer from the slider at specified index.
Clone this wiki locally