You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Predicate callable (sync or async) used to filter the autocomplete options. This function should accept two arguments:
1328
-
the :class:`.AutocompleteContext` and an item from ``values``. If ``None`` is provided, a default filter is used that includes items whose string representation starts with the user's input value, case-insensitive.
1327
+
An optional callable (sync or async) used to filter the autocomplete options. It accepts two arguments:
1328
+
the :class:`.AutocompleteContext` and an item from ``values`` iteration treated as callback parameters. If ``None`` is provided, a default filter is used that includes items whose string representation starts with the user's input value, case-insensitive.
1329
1329
1330
1330
.. versionadded:: 2.7
1331
1331
@@ -1338,9 +1338,11 @@ def basic_autocomplete(
1338
1338
----
1339
1339
Autocomplete cannot be used for options that have specified choices.
0 commit comments