Skip to content

Commit 1b7f0f7

Browse files
Add information about the query search string when creating custom controllers
1 parent 950726d commit 1b7f0f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Autocomplete/src/Resources/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ a :ref:`custom autocompleter <custom-autocompleter>`:
483483
Once you have this, generate the URL to your controller and
484484
pass it to the ``url`` value of the ``stimulus_controller()`` Twig
485485
function, or to the ``autocomplete_url`` option of your form field.
486+
The search term entered by the user is passed a query parameter:
487+
``query``
486488

487489
Beyond ``url``, the Stimulus controller has various other values,
488490
including ``tomSelectOptions``. See the `controller.ts`_ file for

0 commit comments

Comments
 (0)