Skip to content
PHP Ecosystem
Explore

HasBlocking

API reference › HTML Attribute › HasBlocking

traitUIAwesome\Html\Attribute\HasBlocking
Sourcesrc/HasBlocking.php
Used by 3 types

Provides an immutable API for the blocking attribute.

See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/style#blocking.

MethodDescriptionDefined by
blocking()Sets the blocking attribute.HasBlocking
public function blocking(string|UnitEnum|null $value): static

Sets the blocking attribute.

Controls whether rendering waits for the external resource.

Parameters

ParameterTypeDescription
$valuestring|UnitEnum|nullBlocking token, or null to remove the attribute.

Returns

static: New instance with the updated blocking attribute. Blocking for predefined enum values.

Throws