The DropdownElement class is used to create a dropdown selection element in a user interface.Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Constructor
| Name | Type | Description |
|---|---|---|
| elementId | string | Accepts the ID for the element in the constructor |
| label | string | Accepts the label for dropDown in the constructor |
| options | Array<OptionElement> | Accepts options for dropDown in the constructor |
Class Usage
Here’s an example of how you can create an instance of the DropdownElement class:- TypeScript
Key Properties and Methods
Default Value of the Input Element
The setDefaultValue() method sets the default value in the dropdown input, while the getDefaultValue() retrieves it. For example:- TypeScript
Example
Here is an example that showcases the creation and manipulation of an instance of DropdownElement:- TypeScript