Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
94noni authored Oct 5, 2023
1 parent 909ad00 commit 6b85de8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,18 @@ clicked). To do that, use ``norender`` modifier:

For a form using ``ComponentWithFormTrait``, override the ``getDataModelValue()`` method::

private function getDataModelValue()
{
return 'norender|*';
}
private function getDataModelValue(): ?string
{
return 'norender|*';
}

.. tip::

You can also define this value inside Twig::

.. code-block:: html+twig
.. code-block:: html+twig

Check failure on line 366 in src/LiveComponent/doc/index.rst

View workflow job for this annotation

GitHub Actions / DOCtor-RST

Please use "twig" instead of "html+twig"

{{ form_start(form, {attr: {'data-model': 'norender|*'}}) }}
{{ form_start(form, {attr: {'data-model': 'norender|*'}}) }}

Now, as you type, the ``max`` "model" will be updated in JavaScript, but
it won't, yet, make an Ajax call to re-render the component. Whenever
Expand Down

0 comments on commit 6b85de8

Please sign in to comment.