Placeholder
API reference › Form Model › Attribute › Placeholder
Defines placeholder text for a form-model property.
Usage example:
#[Placeholder('name@example.com')]public string $email = '';Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$value readonly constructor | string | Placeholder text for the field. | Placeholder |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates field placeholder metadata. | Placeholder |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $value)Creates field placeholder metadata.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string | Placeholder text for the field. |