Constructor
new SelectFieldOption(label, value)
- Description:
- Creates an instance of the SelectFieldOption class.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label of the option. |
value |
any | The value of the option. If not specified, the label is used as value. |
Methods
getImageUrl() → {string}
- Description:
- Gets the image URL of the option.
- Source:
Returns:
The image URL of the option.
- Type
- string
getLabel() → {string}
- Description:
- Gets the label of the option.
- Source:
Returns:
The label of the option.
- Type
- string
getValue() → {any}
- Description:
- Gets the value of the option.
- Source:
Returns:
The value of the option.
- Type
- any
setImageUrl(imageUrl)
- Description:
- Sets the image URL of the option.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
imageUrl |
string | The image URL to set. |
Returns:
The updated instance of the SelectFieldOption.
setLabel(label)
- Description:
- Sets the label of the option.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The label to set. |
Returns:
The updated instance of the SelectFieldOption.
setValue(value)
- Description:
- Sets the value of the option.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
any | The value to set. |
Returns:
The updated instance of the SelectFieldOption.