Skip to content
PHP Ecosystem
Explore

Placeholder

API reference › Form Model › Attribute › Placeholder

final readonly classUIAwesome\FormModel\Attribute\Placeholder
Sourcesrc/Attribute/Placeholder.php

Defines placeholder text for a form-model property.

Usage example:

#[Placeholder('name@example.com')]
public string $email = '';
PropertyTypeDescriptionDefined by
$value readonly constructorstringPlaceholder text for the field.Placeholder
MethodDescriptionDefined by
__construct()Creates field placeholder metadata.Placeholder
public function __construct(string $value)

Creates field placeholder metadata.

Parameters

ParameterTypeDescription
$valuestringPlaceholder text for the field.