Alsatian67 / FormBundle

Bunch of FormTypes extending some basic Symfony PHP framework FormTypes. ExtensibleTypes makes it possible to allow extra choices by Symfony ChoiceTypes (ChoiceType, EntityType and DocumentType). This can help to make it work with the Select2 jQuery pluggin.
MIT License
14 stars 6 forks source link

Allow to add more "attr" #12

Closed SosthenG closed 4 years ago

SosthenG commented 4 years ago

Allow to add more "attr" options without removing the default ones (default_attr_class & data-ajax--url) "setDefault" is never called for attr if you add custom "attr" to the form declaration. With the normalizer way, it's always called and add the default options without overriding the user customs attrs.