Skip to content
PHP Ecosystem
Explore

HasTabindex

API reference › HTML Attribute › Global › HasTabindex

traitUIAwesome\Html\Attribute\Global\HasTabindex
Sourcesrc/Global/HasTabindex.php
Used by 18 types

Provides an immutable API for the tabindex attribute.

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

MethodDescriptionDefined by
tabIndex()Sets the tabindex attribute.HasTabindex
public function tabIndex(int|string|null $value): static

Sets the tabindex attribute.

Parameters

ParameterTypeDescription
$valueint|string|nullTab order value as an integer or string of ‘-1’ or greater, or null to remove the attribute.

Returns

static: New instance with the updated tabindex attribute.

Throws