Skip to content

Commit

Permalink
[AutoComplete] Note form requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYamous authored and javiereguiluz committed Oct 24, 2024
1 parent 64112c5 commit a55f193
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Autocomplete/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ needed if you're using AssetMapper):
Usage in a Form (without Ajax)
------------------------------

Any ``ChoiceType`` or ``EntityType`` can be transformed into a
Tom Select-powered UI control by adding the ``autocomplete`` option:
If you're using `Symfony Form`_ any ``ChoiceType`` or ``EntityType`` can be
transformed into a Tom Select-powered UI control by adding the ``autocomplete``
option:

.. code-block:: diff
Expand Down Expand Up @@ -747,3 +748,4 @@ the Symfony framework: https://symfony.com/doc/current/contributing/code/bc.html
.. _`controller.ts`: https://github.com/symfony/ux/blob/2.x/src/Autocomplete/assets/src/controller.ts
.. _`Tom Select Render Templates`: https://tom-select.js.org/docs/#render-templates
.. _`Tom Select Option Group`: https://tom-select.js.org/examples/optgroups/
.. _`Symfony Form`: https://symfony.com/doc/current/forms.html

0 comments on commit a55f193

Please sign in to comment.