Trait InputMode
Trait for classes:
- \MvcCore\Ext\Forms\Fields\Number
- \MvcCore\Ext\Forms\Fields\Range-
\MvcCore\Ext\Forms\Fields\Text-
\MvcCore\Ext\Forms\Fields\Email-
\MvcCore\Ext\Forms\Fields\Password-
\MvcCore\Ext\Forms\Fields\Search-
\MvcCore\Ext\Forms\Fields\Tel-
\MvcCore\Ext\Forms\Fields\Url`
Methods summary
public
string|null
|
#
GetInputMode( )
A hint to browsers for which virtual keyboard to display.
This attribute applies when the type attribute is
text , password , email , or url . Possible values:
none : No virtual keyboard should be displayed.
text : Text input in the user's locale.
decimal : Fractional numeric input.
numeric : Numeric input.
tel : Telephone input, including asterisk and
pound key. Prefer <input type="tel"> .
search : A virtual keyboard optimized for search input.
email : Email input. Prefer <input type="email"> .
url : URL input. Prefer <input type="url"> .
A hint to browsers for which virtual keyboard to display.
This attribute applies when the type attribute is
text , password , email , or url . Possible values: none : No virtual keyboard should be displayed. text : Text input in the user's locale. decimal : Fractional numeric input. numeric : Numeric input. tel : Telephone input, including asterisk and pound key. Prefer <input type="tel"> . search : A virtual keyboard optimized for search input. email : Email input. Prefer <input type="email"> . url : URL input. Prefer <input type="url"> .
Returns
string|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-inputmode
|
public
MvcCore\Ext\Forms\Field
|
#
SetInputMode( string|null $inputMode )
A hint to browsers for which virtual keyboard to display.
This attribute applies when the type attribute is
text , password , email , or url . Possible values:
none : No virtual keyboard should be displayed.
text : Text input in the user's locale.
decimal : Fractional numeric input.
numeric : Numeric input.
tel : Telephone input, including asterisk and
pound key. Prefer <input type="tel"> .
search : A virtual keyboard optimized for search input.
email : Email input. Prefer <input type="email"> .
url : URL input. Prefer <input type="url"> .
A hint to browsers for which virtual keyboard to display.
This attribute applies when the type attribute is
text , password , email , or url . Possible values: none : No virtual keyboard should be displayed. text : Text input in the user's locale. decimal : Fractional numeric input. numeric : Numeric input. tel : Telephone input, including asterisk and pound key. Prefer <input type="tel"> . search : A virtual keyboard optimized for search input. email : Email input. Prefer <input type="email"> . url : URL input. Prefer <input type="url"> .
Parameters
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-inputmode
|
protected
|
#
preDispatchInputMode( )
Automatically set up inputmode attribute (if it is still NULL )
by field type in PreDispatch() field rendering moment.
Automatically set up inputmode attribute (if it is still NULL )
by field type in PreDispatch() field rendering moment.
|
Properties summary
protected static
array
|
$fieldTypesAndInputModes
|
#
[
'text' => 'text',
'password' => 'text',
'tel' => 'tel',
'search' => 'search',
'email' => 'email',
'url' => 'url'
]
|
protected
string|null
|
$inputMode
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-inputmode
|
|