ValueInterface
API reference › HTML Contracts › Attribute › ValueInterface
Implemented by 21 types
UIAwesome\Html\Form\AbstractInputDateTimeUIAwesome\Html\Form\ButtonUIAwesome\Html\Form\InputCheckboxUIAwesome\Html\Form\InputColorUIAwesome\Html\Form\InputEmailUIAwesome\Html\Form\InputHiddenUIAwesome\Html\Form\InputNumberUIAwesome\Html\Form\InputPasswordUIAwesome\Html\Form\InputRadioUIAwesome\Html\Form\InputRangeUIAwesome\Html\Form\InputResetUIAwesome\Html\Form\InputSearchUIAwesome\Html\Form\InputSubmitUIAwesome\Html\Form\InputTelUIAwesome\Html\Form\InputTextUIAwesome\Html\Form\InputUrlUIAwesome\Html\Form\MeterUIAwesome\Html\Form\OptionUIAwesome\Html\Form\ProgressUIAwesome\Html\Form\SelectUIAwesome\Html\List\Li
Defines the contract for elements that expose a single-valued value attribute.
Applies to scalar-valued controls such as text inputs, hidden inputs, buttons, and options.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
value() abstract | Sets the value attribute. | ValueInterface |
Method details
Section titled “Method details”value()
Section titled “value() ”abstract public function value(bool|float|int|string|Stringable|UnitEnum|null $value): staticSets the value attribute.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | bool|Stringable|UnitEnum| | Scalar value, or null to remove the attribute. |
Returns
static: New instance with the updated value attribute.