-
Are you planning to support default attributes for lists and dictionaries, for example: <c-vars :toast="{ type: 'success', message: 'Hello world!' }" />
<!-- or -->
<c-vars :items="[Dashboard, Properties, Tenants, Tenancies]" />
{% for item in items %}
<li>
<c-components.ui.link
url="app:{{ item|lower }}"
text="{{ item }}"
icon="{{ item|lower }}"
/>
</li>
{% endfor %} Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
wrabit
Sep 23, 2024
Replies: 1 comment 2 replies
-
Hi @Macktireh yes it’s supported, check the first test case here https://github.com/wrabit/django-cotton/blob/main/django_cotton/tests/test_cvars.py |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Macktireh please ensure you update to the latest release v1.0.9. A bug was spotted in connection to dynamic cvars.