You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
widget_tweaks however does not support this currently if I'm not mistaken which makes impossible to use together with bootstrap and Vue, unless you want to render manually.
{% for field in form.visible_fields %}
{% render_field field class="form-control" v-bind::class="{ 'is-valid' : formValid}" %}
{% endfor %}
^ will fail with syntax error
The text was updated successfully, but these errors were encountered:
{% with foo="{'is-valid': formValid}" %}
{% render_field field class="form-control" v-bind::class=foo %}
{% endwith %}
or in my case within a form-loop:
{% for field in form.visible_fields %}
{% with vue_bind="{'is-valid': formValid('"|add:field.name|add:"')}" %}
{% render_field field class="form-control" v-bind::class=vue_bind %}
{% endwith %}
{% endfor %}
Twitter Bootstrap classes have hyphens in their names, i.e.
is-valid
.Vue supports hyphens by encapsulating classes within quotes:
https://vuejs.org/v2/guide/class-and-style.html#Object-Syntax
widget_tweaks however does not support this currently if I'm not mistaken which makes impossible to use together with bootstrap and Vue, unless you want to render manually.
^ will fail with syntax error
The text was updated successfully, but these errors were encountered: