Method to get values from a label #38
Ezekiel-Webfox
started this conversation in
Ideas
Replies: 3 comments
-
In the meantime can filter on the labels array, but I think it may be a useful convenience method. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Ezekiel-Webfox how would you handle the case of there being multiple items that have the same label? Return the first found? Return an array if there are multiple found? Always return an array? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@hailwood I would say always return an array for consistency |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could we get a method to retrieve values from a given label.
Would be useful in situations where user is searching using the enum label, but we need to filter using the value.
Beta Was this translation helpful? Give feedback.
All reactions