@Trait trait MapToSelectInputRenderer<T> extends Object implements DomainInputRenderer
A class to easily render a select element based on a given set of options and a default option
T - Any type| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract T |
getDefaultOption()
|
|
abstract String |
getOptionKey(T t)Defines how a given |
|
abstract String |
getOptionValue(T t)Defines how a given |
|
abstract Map<String, String> |
getOptions()Builds the options to be displayed |
|
Closure |
renderInput(Map defaultAttributes, DomainProperty property)
|
Defines how a given t - An instance of T
Defines how a given t - An instance of T
Builds the options to be displayed