UmbrellaChoiceType

FormType based on ChoiceType (use Tom select js library).

['multiple' => true]
['expose' => fn($choice) => ['specie' => ...] , 'template' => '[[text]][[specie]];

All options of ChoiceType +

Option Type Default value Description
hide_selected bool true Hide selected options on dropdown.
highlight bool true Highlight searched options on dropdown.
max_items int | null null Only effective if "multiple" is true : the max number of items the user can select.
expose callable | null null Used with option template_selector or template_html to expose additional variables.
template_html string | null null Mustache template (by default, 2 variables are available : id and text).
template_selector string | null null Css selector of mustache template in HTML dom.

UmbrellaEntityType

FormType based on ChoiceType and UmbrellaChoiceType.

Use NestedTreeType or options template and expose to get this result
All options of EntityType + all options of UmbrellaChoiceType

UmnbrellaTagType

Selector with option creation

AutoCompleteType

Selector with async loading.

Option Type Default value Description
route string null Mandatory, route name of action returning results
route_params array [] Route parameters
class string null Mandatory, doctrine entity classname.
multiple bool false Multiple selection if true.
hide_selected bool true Hide selected options on dropdown.
highlight bool true Highlight searched options on dropdown.
max_items int | null null Only effective if "multiple" is true : the max number of items the user can select.
template_html string | null null Mustache template (by default, 2 variables are available : id and text).
template_selector string | null null Css selector of mustache template in HTML dom.