Class EnumExtensions.
Object
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public static class EnumExtensionsConverts Enum to IEnumerable of Value/Text.
public static IEnumerable<object> EnumAsKeyValuePair(Type enumType, Func<string, string> translationFunction)
| Type | Name | Description |
|---|---|---|
| Type | enumType | |
| Func<string, string> | translationFunction |
| Type | Description |
|---|---|
| IEnumerable<object> |
Converts the autocomplete type enum value to the expected autocomplete attribute value.
public static string GetAutoCompleteValue(AutoCompleteType typeValue)
| Type | Name | Description |
|---|---|---|
| AutoCompleteType | typeValue |
| Type | Description |
|---|---|
| string | The autocomplete attribute string value. |
Gets enum description.
public static string GetDisplayDescription(Enum enumValue, Func<string, string> translationFunction)
| Type | Name | Description |
|---|---|---|
| Enum | enumValue | |
| Func<string, string> | translationFunction |
| Type | Description |
|---|---|
| string |