From a55f193be16016afc4285f141b212c98818546a9 Mon Sep 17 00:00:00 2001 From: Matthieu Lempereur Date: Wed, 23 Oct 2024 12:17:45 +0200 Subject: [PATCH] [AutoComplete] Note form requirements --- src/Autocomplete/doc/index.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Autocomplete/doc/index.rst b/src/Autocomplete/doc/index.rst index 69ade32aaf8..bf5d1a0d2ff 100644 --- a/src/Autocomplete/doc/index.rst +++ b/src/Autocomplete/doc/index.rst @@ -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 @@ -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