diff --git a/reference/forms/types/options/choice_attr.rst.inc b/reference/forms/types/options/choice_attr.rst.inc index 4b4d8f187ac..d7501cc73b0 100644 --- a/reference/forms/types/options/choice_attr.rst.inc +++ b/reference/forms/types/options/choice_attr.rst.inc @@ -6,8 +6,9 @@ choice_attr **type**: ``array``, ``callable`` or ``string`` **default**: ``array()`` -Use this to add additional HTML attributes to each choice. This can be an array -of attributes (if they are the same for each choice), a callable or a property path +Use this to add additional HTML attributes to each choice. This can be +an associative array where the keys match the choice keys and the values +are the options for each choice, a callable or a property path (just like `choice_label`_). If an array, the keys of the ``choices`` array must be used as keys:: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy