Hello list \o/
Currently, we can attach scripts and css by declaring their urls in Media. It then renders the script and link tags, allowing users to have that outside the form tag in the template, ie. in the HTML head.
A good way to pass a widget's configuration from python to js is to pass them as data- attributes, and make the js pick it up. This works fine for simple key/value options, but not for more complex data structures ie. complete JSON objects.
It would be great if we could also add generated css/js to ``{{ form.Media }}``.
Thoughts ?
Thanks for your time
Best regards
James