Skip to content

Commit

Permalink
minor #2107 [Doc] Fix a Twig function name in UX Map docs (javieregui…
Browse files Browse the repository at this point in the history
…luz)

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
  • Loading branch information
javiereguiluz committed Aug 30, 2024
2 parents 211ee5b + 80ee61d commit 540a847
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Map/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ To render a map in your Twig template, use the ``ux_map`` Twig function, e.g.:

.. code-block:: twig
{{ ux_map(my_map) }}
{# or with custom attributes #}
{# to be visible, the map must have a defined height #}
{{ ux_map(my_map, { style: 'height: 300px' }) }}
{# you can add custom HTML attributes too #}
{{ ux_map(my_map, { style: 'height: 300px', id: 'events-map', class: 'mb-3' }) }}
Extend the default behavior
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 540a847

Please # to comment.