Skip to content

Commit

Permalink
note form requirements in autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYamous authored Oct 23, 2024
1 parent 64112c5 commit bcb7a9a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Autocomplete/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ 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:
Tom Select-powered UI control by adding the ``autocomplete`` option.

In a new project you may need to install `Symfony Form`_:

.. code-block:: terminal
$ composer require symfony/form
.. code-block:: diff
Expand Down Expand Up @@ -747,3 +753,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 bcb7a9a

Please sign in to comment.