We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1441c8 + 94fcc14 commit e5ff992Copy full SHA for e5ff992
1 file changed
README.md
@@ -90,17 +90,15 @@ Yourbase template should extends elao admin theme base:
90
### Drop
91
92
```twig
93
-{% embed "@ElaoAdminTheme/components/drop.html.twig" only %}
+{% embed "@ElaoAdminTheme/components/drop.html.twig" with {
94
+ menu: [
95
+ { url: '#show', label: 'Consulter' },
96
+ { url: '#edit', label: 'Éditer' },
97
+ { url: '#delete', label: 'Supprimer' },
98
+ ]
99
+} only %}
100
{% block drop_direction 'left' %}
101
{% block tooltip_direction 'top' %}
102
{% block tooltip_label 'Choisir une action' %}
- {% block drop_menu %}
- {% set menu = [
- { url: '#show', label: 'Consulter' },
- { url: '#edit', label: 'Éditer' },
- { url: '#delete', label: 'Supprimer' },
- ] %}
103
- {{ parent() }}
104
- {% endblock %}
105
{% endembed %}
106
```
0 commit comments