Skip to content

Commit

Permalink
minor #2348 [Autocomplete][Doc] Mention preload can be set to `fals…
Browse files Browse the repository at this point in the history
…e` (MatTheCat)

This PR was merged into the 2.x branch.

Discussion
----------

[Autocomplete][Doc] Mention `preload` can be set to `false`

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Issues        | N/A
| License       | MIT

Setting `preload` to `false` is useful when you only want to display search results; that way nothing is loaded on focus.

Commits
-------

4feaeb0 [Autocomplete][Doc] Mention `preload` can be set to `false`
  • Loading branch information
Kocal committed Nov 7, 2024
2 parents 33d1c8d + 4feaeb0 commit 86e571c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Autocomplete/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ to the options above, you can also pass:
``preload`` (default: ``focus``)
Set to ``focus`` to call the ``load`` function when control receives focus.
Set to ``true`` to call the ``load`` upon control initialization (with an empty search).
Set to ``false`` not to call the ``load`` function when control receives focus.

``extra_options`` (default ``[]``)
Allow you to pass extra options for Ajax-based autocomplete fields.
Expand Down

0 comments on commit 86e571c

Please # to comment.