Skip to content
PHP Ecosystem
Explore

HasInputMode

API reference › HTML Attribute › Global › HasInputMode

traitUIAwesome\Html\Attribute\Global\HasInputMode
Sourcesrc/Global/HasInputMode.php
Used by 1 type

Provides an immutable API for the inputmode attribute.

See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode.

MethodDescriptionDefined by
inputMode()Sets the inputmode attribute.HasInputMode
public function inputMode(string|UnitEnum|null $value): static

Sets the inputmode attribute.

Parameters

ParameterTypeDescription
$valuestring|UnitEnum|nullInput mode value (‘decimal’, ‘email’, ‘none’, ‘numeric’, ‘search’, ‘tel’, ‘text’, ‘url’, or null to remove the attribute).

Returns

static: New instance with the updated inputmode attribute.

Throws