Select component for enums
See original GitHub issueProblem
When creating a <Select>
-field for to select values of an enumeration, I manually need to add the possible options again and add an onchange-function to then change the value in an <EditForm>
.
Sugested solution
It would be greate to have one <SelectEnum>
-field that takes over all the work as it was done here - but of course in ant design!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Using enumerations in React select
We can define a generic function getEnumKeys ,that gets the array of keys of an enum: const getEnumKeys = <T>(enumToDeconstruct: T): Array<keyof ...
Read more >Bind input select element to enum in blazor
In this video we will discuss how to bind input select element to enum type in Blazor. Gender Enum. We want to bind...
Read more >Enum selection field in component - Programming & Scripting
How can I add selection of a Enum type in my SceneComponent. I've added UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Classes) ...
Read more >Blazorise Select component
Select and SelectItem are generic components and they support all of the basic value types line int, string, enum, etc. Nullable types are...
Read more >Advanced typescript for React developers - part 3
We have an array of strings, a switch case that for every tab returns a select component, and a select component for categories...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Epictek @ElDiddi I think We can support it in the new select. Enable user only pass the enum type as the generic type.
@dennisrahmen Sounds good! My use case needs localisation as well. I’ll see what I can do.