SpinnerElement
class is utilised to create a single selection input element in a user interface.
Name | Type | Description |
---|---|---|
elementId | string | This property in constructor accepts the Id for the element |
label | string | This property in constructor accepts the label for SpinnerElement |
options | List<OptionElement> | This property in constructor accepts options for SpinnerElement |
SpinnerElement
class:
SpinnerElement
is created with an elementId “idSelect”, a label “Choose an option”, and a list of two options.
setDefaultValue()
method sets the default value in the single select input, while the getDefaultValue()
retrieves it.
For example:
SpinnerElement
: