Skip to content

Commit bcb7a9a

Browse files
authored
note form requirements in autocomplete
1 parent 64112c5 commit bcb7a9a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Autocomplete/doc/index.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ Usage in a Form (without Ajax)
3434
------------------------------
3535

3636
Any ``ChoiceType`` or ``EntityType`` can be transformed into a
37-
Tom Select-powered UI control by adding the ``autocomplete`` option:
37+
Tom Select-powered UI control by adding the ``autocomplete`` option.
38+
39+
In a new project you may need to install `Symfony Form`_:
40+
41+
.. code-block:: terminal
42+
43+
$ composer require symfony/form
3844
3945
.. code-block:: diff
4046
@@ -747,3 +753,4 @@ the Symfony framework: https://symfony.com/doc/current/contributing/code/bc.html
747753
.. _`controller.ts`: https://github.com/symfony/ux/blob/2.x/src/Autocomplete/assets/src/controller.ts
748754
.. _`Tom Select Render Templates`: https://tom-select.js.org/docs/#render-templates
749755
.. _`Tom Select Option Group`: https://tom-select.js.org/examples/optgroups/
756+
.. _`Symfony form`: https://symfony.com/doc/current/forms.html

0 commit comments

Comments
 (0)