InputMode

Enum for HTML input modes.

API

Enum Values

Index Value Description
0 Text Standard input keyboard for the user's current locale.
1 None No virtual keyboard. For when the page implements its own keyboard input control.
2 Decimal Fractional numeric input keyboard containing the digits and decimal separator for the user's locale (typically . or ,). Devices may or may not show a minus key (-).
3 Numeric Numeric input keyboard, but only requires the digits 0โ€“9. Devices may or may not show a minus key.
4 Tel A telephone keypad input, including the digits 0โ€“9, the asterisk (*), and the pound (#) key. Inputs that *require* a telephone number should typically use InputType.Tel instead.
5 Search A virtual keyboard optimized for search input. For instance, the return/submit key may be labeled โ€œSearchโ€, along with possible other optimizations. Inputs that require a search query should typically use InputType.Search instead.
6 Email A virtual keyboard optimized for entering email addresses. Typically includes the @ character as well as other optimizations. Inputs that require email addresses should typically use InputType.Email instead.
7 Url A keypad optimized for entering URLs. This may have the / key more prominent, for example. Enhanced features could include history access and so on. Inputs that require a URL should typically use InputType.Url instead.

Methods

Method Returns Description
CompareTo(object target) int
GetTypeCode() TypeCode
HasFlag(Enum flag) bool

Static Methods

Method Type Description
Format (Type enumType, object value, string format) string
GetName (TEnum value) string
GetName (Type enumType, object value) string
GetNames () string[]
GetNames (Type enumType) string[]
GetUnderlyingType (Type enumType) Type
GetValues () TEnum[]
GetValues (Type enumType) Array
IsDefined (TEnum value) bool
IsDefined (Type enumType, object value) bool
Parse (Type enumType, string value) object
Parse (Type enumType, ReadOnlySpan<char> value) object
Parse (Type enumType, string value, bool ignoreCase) object
Parse (Type enumType, ReadOnlySpan<char> value, bool ignoreCase) object
Parse (string value) TEnum
Parse (ReadOnlySpan<char> value) TEnum
Parse (string value, bool ignoreCase) TEnum
Parse (ReadOnlySpan<char> value, bool ignoreCase) TEnum
ToObject (Type enumType, object value) object
ToObject (Type enumType, sbyte value) object
ToObject (Type enumType, short value) object
ToObject (Type enumType, int value) object
ToObject (Type enumType, byte value) object
ToObject (Type enumType, Ushort value) object
ToObject (Type enumType, Uint value) object
ToObject (Type enumType, long value) object
ToObject (Type enumType, Ulong value) object
TryParse (Type enumType, string value, object& result) bool
TryParse (Type enumType, ReadOnlySpan<char> value, object& result) bool
TryParse (Type enumType, string value, bool ignoreCase, object& result) bool
TryParse (Type enumType, ReadOnlySpan<char> value, bool ignoreCase, object& result) bool
TryParse (string value, TEnum& result) bool
TryParse (ReadOnlySpan<char> value, TEnum& result) bool
TryParse (string value, bool ignoreCase, TEnum& result) bool
TryParse (ReadOnlySpan<char> value, bool ignoreCase, TEnum& result) bool
An unhandled error has occurred. Reload ๐Ÿ—™