-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Update choice_attr.rst.inc #8346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Considering putting the callable and propertypath option before the array in the sentence because:
In hindsight i prefer this
|
I have a question which could go into an issue, but since i'm working on this part of the docs anyway i might as well put it here. if choices are like 'choices' => array(
'Yes' => true,
'No' => false,
'Maybe' => null,
), What's then
What's the purpose of index here? whatever it is, it's not explained in the docs. I can change this part too. Another question ... also related: is it possible to get the current data here somehow? I like the attribute of one choice to depends on true/false of the other choices, more specifically i want to check if at least 1 is true. |
@HeahDude maybe you can review this proposed change related to forms? Thanks! |
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[...] the attributes for each [...]
Thanks for this ... and sorry for having taken so long to merge it. |
This PR was merged into the 2.7 branch. Discussion ---------- Update choice_attr.rst.inc symfony/symfony#24088 Commits ------- 2691504 Update choice_attr.rst.inc
symfony/symfony#24088