Skip to content

Commit 540a847

Browse files
committed
minor #2107 [Doc] Fix a Twig function name in UX Map docs (javiereguiluz)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Doc] Fix a Twig function name in UX Map docs | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Issues | - | License | MIT I've started using the UX Map component in a Symfony app. So far it's great, thanks. I found a minor error in the docs about the name of the function to use. Commits ------- 80ee61d [Doc] Fix a Twig function name in UX Map docs
2 parents 211ee5b + 80ee61d commit 540a847

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)