Skip to content
PHP Ecosystem
Explore

HasSpellcheck

API reference › HTML Attribute › Global › HasSpellcheck

traitUIAwesome\Html\Attribute\Global\HasSpellcheck
Sourcesrc/Global/HasSpellcheck.php
Used by 6 types

Provides an immutable API for the spellcheck attribute.

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

MethodDescriptionDefined by
spellcheck()Sets the spellcheck attribute.HasSpellcheck
public function spellcheck(bool|string|null $value): static

Sets the spellcheck attribute.

Parameters

ParameterTypeDescription
$valuebool|string|nullSpellcheck state. Use true or false, or null to remove the attribute.

Returns

static: New instance with the updated spellcheck attribute.

Throws