-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Update choice_label docs to match given examples #11016
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
This method is called for *each* choice, passing you the choice ``$value`` and the | ||
``$key`` from the choices array (``$index`` is related to `choice_value`_). This | ||
This method is called for *each* choice, passing you the ``$choiceValue`` and the | ||
``$key`` from the choices array (``$value`` is related to `choice_value`_). This |
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 "$value
is related to choice_value
_" part doesn't look right to me.
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.
what do you propose then?
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.
Maybe something like this:
This method is called for *each* choice, passing you the ``$choiceValue``
(related to `choice_value`_), the ``$key`` from the choices array and the
``$value``. This will give you:
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.
updated
@JarJak thanks for fixing this bug! We merged it in 3.4 branch; that's why GitHub displays it as closed instead of merged, but it's merged. |
This PR was submitted for the 4.2 branch but it was squashed and merged into the 3.4 branch instead (closes #11016). Discussion ---------- Update choice_label docs to match given examples Code, description and image in the example did not match. Commits ------- 67e716b Update choice_label docs to match given examples
Code, description and image in the example did not match.