Open neozhu opened 1 year ago
Hi, you can use enums with ItemCollection like:
<MudSelectExtended ItemCollection="@(Enum.GetValues<EnumType>())" \>
Isn't it fulfill your requirements?
Hi, you can use enums with ItemCollection like:
<MudSelectExtended ItemCollection="@(Enum.GetValues<EnumType>())" \>
Isn't it fulfill your requirements?
Thank you for your response and suggestion. Your solution using enums with ItemCollection can work, but in my case, I need to display the items based on their Description and also support nullable values. However, I will try your approach and see if I can modify it to meet my requirements.
Hi, you can use enums with ItemCollection like:
<MudSelectExtended ItemCollection="@(Enum.GetValues<EnumType>())" \>
Isn't it fulfill your requirements?Thank you for your response and suggestion. Your solution using enums with ItemCollection can work, but in my case, I need to display the items based on their Description and also support nullable values. However, I will try your approach and see if I can modify it to meet my requirements.
Would you post your solution to use enum's description and nullable values?
I was wondering if there are any plans to add support for enum types in MudSelect? I think this feature is quite useful in actual projects, and having a new component that supports enums would save a lot of time. If this is not currently on the roadmap, I would be happy to provide an example of how this feature could be used. Thank you for your time and consideration.