Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Form] Add the EnumType#43095
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Form] Add the EnumType#43095
Uh oh!
There was an error while loading.Please reload this page.
Conversation
fc916bc toaa73717CompareUh oh!
There was an error while loading.Please reload this page.
e14f102 to51ef328Comparestof commentedSep 19, 2021
please also add a test covering the case of enums backed by integers rather than strings. |
268a8f4 to55b0debComparederrabus commentedSep 19, 2021
Good idea, done! |
7fd97b3 to0f08e0aCompare0f08e0a to0846cc8Compare
yceruto left a comment
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.
👍 just a minor inaccuracy about whatchoice_value callback should return (it's the string "value" of each choice)
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Tobion left a comment
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.
Very clean. Just missing a changelog entry.
Signed-off-by: Alexander M. Turek <me@derrabus.de>
0b5b2c6 toc6edc34Comparefabpot commentedSep 21, 2021
Thank you@derrabus. |
rccc commentedMar 27, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hello, We cannot do this:
but we can do this
But "molecule_name" or "v" will be display in the select field. How wan we display "Molecue Name" while havinf "molecule_name" in the field value attribute ? Eric |
xabbuh commentedMar 27, 2025
For support, please refer to one of thesupport channels. Thank you for understanding. |
Uh oh!
There was an error while loading.Please reload this page.
This PR adds a new
EnumTypethat enables the form component to configure aChoiceTypefor a native PHP enum.Example: