HasAccesskey
API reference › HTML Attribute › Global › HasAccesskey
Used by 4 types
Provides an immutable API for the accesskey attribute.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
accesskey() | Sets the accesskey attribute. | HasAccesskey |
Method details
Section titled “Method details”accesskey()
Section titled “accesskey() ”public function accesskey(string|Stringable|UnitEnum|null $value): staticSets the accesskey attribute.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string|Stringable|UnitEnum| | Access key character, or null to remove the attribute. |
Returns
static: New instance with the updated accesskey attribute.