Skip to content
PHP Ecosystem
Explore

HasPopover

API reference › HTML Attribute › Global › HasPopover

traitUIAwesome\Html\Attribute\Global\HasPopover
Sourcesrc/Global/HasPopover.php

Provides an immutable API for the popover attribute.

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

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

Sets the popover attribute.

Parameters

ParameterTypeDescription
$valuestring|UnitEnum|nullPopover state (‘auto’, ‘hint’, ‘manual’), or null to remove the attribute.

Returns

static: New instance with the updated popover attribute. Popover for predefined enum values.

Throws