Open pbowyer opened 8 years ago
Sure, by all means go ahead submit a PR when you have it. The AJAX functionality was my main use for this but the more flexibility the better.
So long as it doesn't break backwards compatibility, that sounds great.
+1
+1
@pbowyer Have you had a chance to work on this in the end?
@Schyzophrenic I didn't unfortunately - in the end project deadlines meant we used this in places and used a raw Select2 field for non-AJAX fields. It got us to production :)
Proposed PR #68
+1
This is a pre pull-request conversation
I would like the option to have Select2 either use AJAX to fetch data or the options already in the select field. While this can be done - using this bundle for the AJAX fields, and a ChoiceType + custom JS for the others - I would like to see one Select2 field type for Symfony2, which I can switch between the two quickly and easily (as datasets scale), via changing one parameter (e.g. an
ajax
flag per field).Is this a change you would like to have as part of the library? I don't believe it's already present in your bundle, and would be interested in working on it.