SingleSelectElement class is utilised to create a single selection input element in a user interface.
Constructor
Class Usage
Here’s how to create an instance of theSingleSelectElement class:
- Java
SingleSelectElement is created with an elementId “idSelect”, a label “Choose an option”, and a list of two options.
Key Properties and Methods
Default Value of the Input Element
ThesetDefaultValue() method sets the default value in the single select input, while the getDefaultValue() retrieves it.
For example:
- Java
Example
Here is an example that showcases the creation and manipulation of an instance ofSingleSelectElement:
- Java