From d6bb6d75407ab9f29f98fd9e59be67349f3f0548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80=D0=B8=D0=B9?= Date: Mon, 14 Oct 2024 17:02:35 +0300 Subject: [PATCH] Update index.rst Fixed forgotten commas in twig component function, cuz without it... It won't be working --- src/LiveComponent/doc/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LiveComponent/doc/index.rst b/src/LiveComponent/doc/index.rst index 7b7e7ca1c41..c2fa4bcf453 100644 --- a/src/LiveComponent/doc/index.rst +++ b/src/LiveComponent/doc/index.rst @@ -2421,7 +2421,7 @@ the ``loading-template`` option to point to a template: {# With the component function #} - {{ component('SomeHeavyComponent', { loading: 'defer', loading-template: 'spinning-wheel.html.twig' }) }} + {{ component('SomeHeavyComponent', { loading: 'defer', 'loading-template': 'spinning-wheel.html.twig' }) }} Or override the ``loadingContent`` block: @@ -2444,7 +2444,7 @@ To change the initial tag from a ``div`` to something else, use the ``loading-ta .. code-block:: twig - {{ component('SomeHeavyComponent', { loading: 'defer', loading-tag: 'span' }) }} + {{ component('SomeHeavyComponent', { loading: 'defer', 'loading-tag': 'span' }) }} Polling -------