HasImageSrcSet
API reference › HTML Attribute › HasImageSrcSet
Used by 1 type
Provides an immutable API for the imagesrcset attribute.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link#imagesrcset.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
imagesrcset() | Sets the imagesrcset attribute. | HasImageSrcSet |
Method details
Section titled “Method details”imagesrcset()
Section titled “imagesrcset() ”public function imagesrcset(string|Stringable|UnitEnum|null $value): staticSets the imagesrcset attribute.
Defines the image srcset descriptor list for preload links.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string|Stringable|UnitEnum| | Image srcset descriptor list, or null to remove the attribute. |
Returns
static: New instance with the updated imagesrcset attribute.