Commit fa2dfc8
committed
minor #17149 [Form] Example of customizing
This PR was submitted for the 6.1 branch but it was merged into the 5.4 branch instead.
Discussion
----------
[Form] Example of customizing `EnumType` labels
Default behavior when creating a EnumType form element is that the choice labels displayed to the user are the enum names.
This PR adds an example of how to use a function inside an enum to return labels and how to bind this function to the form element.
Commits
-------
65ece3e [Form] Example of customizing EnumType labelsEnumType labels (robinbrisa)1 file changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
59 | 93 | | |
60 | 94 | | |
61 | 95 | | |
| |||
0 commit comments