diff --git a/src/Autocomplete/doc/index.rst b/src/Autocomplete/doc/index.rst index 972479d7fe3..cca374fa06a 100644 --- a/src/Autocomplete/doc/index.rst +++ b/src/Autocomplete/doc/index.rst @@ -206,6 +206,17 @@ e.g. ``FoodAutocompleteField`` from above): ``tom_select_options`` (default: ``[]``) Use this to set custom `Tom Select Options`_. If you need to set an option using JavaScript, see `Extending Tom Select`_. + You can disable default plugins using ``tom_select_options.plugins``:: + + $resolver->setDefaults([ + 'class' => Ingredient::class, + 'tom_select_options' => [ + 'plugins' => [ + 'clear_button' => false, // Disable the clear button + 'remove_button' => false, // Disable the remove button + ], + ], + ]); ``options_as_html`` (default: ``false``) Set to ``true`` if your options (e.g. ``choice_label``) contain HTML. Not