Example of using autocomplete extension with AdmingeneratorBundle
Closed this issue · 3 comments
Hi,
I'm doing the same thing like in this issue :
symfony2admingenerator/AdmingeneratorGeneratorBundle#509
@loostro : You created an autocomplete extension but I didn't found documentation about using it in the AdmingeneratorBundle
The autocomplete extension is just to add autocomplete="off"
to input (which disables BROWSER autocomplete).
You probably was to use Select2 widget (which is a select + "search" mechanism). See select2 doc.
If you want a list of entities -> use afe_select2_entity, if a simple array of choices -> use afe_select2_choice... ETC.
All the options passed into config
option are passed down to the widget (and thanks to e4js
filter, you can pass anonymous javascript functions too).
See select2 doc to see all possible options.
Is there already an Ajax autocomplete widget type as I haven't found one.
https://gist.github.com/ksn135/447dfbf674f16b1e8e94
Отправлено с iPhone