Widget With Select Mixin
Et2WidgetWithSelectMixin
Used by
This mixin is applied by the following widgets.
Properties
| Name | Description | Type | Default |
|---|---|---|---|
emptyLabel |
Textual label for first row, eg: ‘All’ or ‘None’. It’s value will be ″ |
String
|
""
|
select_options |
Select box options Will be found automatically based on ID and type, or can be set explicitly in the template using |
SelectOption[]
|
- |
_optionTargetNode |
Get the node where we’re putting the options If this were a normal selectbox, this would be just the |
HTMLElement
|
- |
Methods
| Name | Description | Arguments |
|---|---|---|
optionSearch()
|
Search options for a given value, returning the first matching option |
value: string, options: SelectOption[], searchKey: string, childKey: string
|
_emptyLabelTemplate()
|
Render the “empty label”, used when the selectbox does not currently have a value | - |
set_select_options()
|
Set select options
assign to select_options |
new_options: SelectOption[] | { [key : string] : string }[]
|