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