Skip to content

Commit 76184e3

Browse files
committed
minor #377 Add information about the query search string when creating custom co… (maartendekeizer, weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- Add information about the query search string when creating custom co… …ntrollers | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | n/a | License | MIT I was looking how to know what the user was looking (what the user typed). Easy to find with a debug bar, but I think it should be part of the documentation. Commits ------- 85a411d removing extra word b48aa4d Use text suggestion from `@weaverryan` 1b7f0f7 Add information about the query search string when creating custom controllers
2 parents 9e3097b + 85a411d commit 76184e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ 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 as a query parameter called ``query``.
486487

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

0 commit comments

Comments
 (0)