sweh / ajja

JavaScript library for simple creation of forms and display of collections
MIT License
2 stars 0 forks source link

Allow widget configuration via options dict and data attribute #22

Open sweh opened 8 years ago

sweh commented 8 years ago

Originally reported by: Florian Pilz (Bitbucket: florianpilz, GitHub: florianpilz)


Currently some configuration is supplied via the options dict when creating an instance of gocept.jsform, other options are read from the template via data-attributes.

It would be nice if all widget specific configuration can be done both ways, thus gocept.jsform has to check the options dict and the data-attributes of the template. The documentation should tell that both ways are supported and which is preferred if both are given.