HasPopover
API reference › HTML Attribute › Global › HasPopover
Provides an immutable API for the popover attribute.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
popover() | Sets the popover attribute. | HasPopover |
Method details
Section titled “Method details”popover()
Section titled “popover() ”public function popover(string|UnitEnum|null $value): staticSets the popover attribute.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string|UnitEnum| | Popover 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
InvalidArgumentException: If the provided value is not valid.