Closed JustDylan23 closed 3 years ago
as far as I am aware it should look something like this
Isnt the ModelAutocompleteType made for this ?
ModelAutocompleteType works by calling an endpoint, there should be a client side equivalent of this, right?
In one of our projects at work some of the model type inputs have search boxes and others dont. I am really not sure what the deciding factor is to whether you get a searchbox or not.
There is search box only if there is enough choices. I don't know how many but I have noticed this in 3.* and haven't even tested 4
Looks like it shows the search box when there are more than 10 results and you can modify it with the data-sonata-select2-maximumSelectionSize
attribute like https://symfony.com/doc/current/bundles/SonataAdminBundle/cookbook/recipe_select2.html#disable-select2-on-some-form-elements
It would be pretty nice to have this documented somewhere, can somebody edit the documentation?
It would be pretty nice to have this documented somewhere, can somebody edit the documentation?
You're welcome to do it ;)
There is no input box for me to type in that gives autocompletion.
The documentation says that select2 is integrated with sonata admin and that it is enabled on every select without doing anything
I honestly have no clue why it isn't showing up
I have both the admin-bundle and the doctrine-orm-bunde on version 4.0.0-alpha-2 currently.