Skip to content

Commit bc1c99f

Browse files
committed
minor #2412 [Maps] Fix documentations codeblocks for the LiveComponent integration (Kocal)
This PR was merged into the 2.x branch. Discussion ---------- [Maps] Fix documentations codeblocks for the LiveComponent integration | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Some codeblocks are missing: <img width="842" alt="image" src="https://github.com/user-attachments/assets/c2bf8609-1400-45e6-b038-d4123d4c249c"> (markdown FTW) Commits ------- 795d32d [Maps] Fix documentations docblocks for the LiveComponent integration
2 parents ae5cc06 + 795d32d commit bc1c99f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Map/doc/index.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,7 @@ Usage with Live Components
341341
To use a Map inside a Live Component, you need to use the ``ComponentWithMapTrait`` trait
342342
and implement the method ``instantiateMap`` to return a ``Map`` instance.
343343

344-
You can interact with the Map by using ``LiveAction`` attribute:
345-
346-
.. code-block::
344+
You can interact with the Map by using ``LiveAction`` attribute::
347345

348346
namespace App\Twig\Components;
349347

@@ -382,9 +380,7 @@ Then, you can render the map with ``ux_map()`` in your component template:
382380
</div>
383381

384382
Then, you can define `Live Actions`_ to interact with the map from the client-side.
385-
You can retrieve the map instance using the ``getMap()`` method, and change the map center, zoom, add markers, etc.
386-
387-
.. code-block::
383+
You can retrieve the map instance using the ``getMap()`` method, and change the map center, zoom, add markers, etc::
388384

389385
#[LiveAction]
390386
public function doSomething(): void

0 commit comments

Comments
 (0)