To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
An OptionType backed by a fixed list of choices, rendered as an HTML select element. Built with ListOptionTypeBuilder and used to declare a dropdown field for mail merge or field definitions, such as the configuration options for an email trigger.
Implements: OptionType
Properties
| Property | Returns | Description |
|---|---|---|
| list | List<Option> | The fixed set of choices offered by this option type. |
| optionTypeId | String | The option type identifier used by editors to pick the right input control for this type. |
Methods
getList()
Returns: List<Option>
The fixed set of choices offered by this option type.
getOptionTypeId()
Returns: String
The option type identifier used by editors to pick the right input control for this type.
toHtml(String triggerCode, String value)
Returns: String
Renders this option type as an HTML select element listing its choices, with the given value pre-selected.
| Parameter | Description |
|---|---|
triggerCode | used as the id and name attribute of the generated select element |
value | the currently selected option code, used to mark the matching option as selected |