Skip to content

Commit 80ee61d

Browse files
committed
[Doc] Fix a Twig function name in UX Map docs
1 parent 211ee5b commit 80ee61d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Map/doc/index.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@ To render a map in your Twig template, use the ``ux_map`` Twig function, e.g.:
124124

125125
.. code-block:: twig
126126
127-
{{ ux_map(my_map) }}
128-
129-
{# or with custom attributes #}
127+
{# to be visible, the map must have a defined height #}
130128
{{ ux_map(my_map, { style: 'height: 300px' }) }}
131129
130+
{# you can add custom HTML attributes too #}
131+
{{ ux_map(my_map, { style: 'height: 300px', id: 'events-map', class: 'mb-3' }) }}
132+
132133
Extend the default behavior
133134
~~~~~~~~~~~~~~~~~~~~~~~~~~~
134135

0 commit comments

Comments
 (0)