Esc
API Index — Namespaces, Packages, Reports, Indices
Model
in package
FinalYes
Marks a public component property as writable from a form input.
Properties without this attribute are server-owned: they travel in the signed snapshot but the browser can never change them.
rules— validation rules, e.g.'required|email'(see Validator).live— send each change after a short debounce (search boxes, live validation).blur— send the change when the field loses focus.- neither — deferred: the value rides along with the next action.
Attributes
- #[Attribute]
- \Attribute::TARGET_PROPERTY
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$blur read-only
public
bool
$blur
= false
$debounce read-only
public
int
$debounce
= 300
$live read-only
public
bool
$live
= false
$rules read-only
public
string
$rules
= ''
Methods
__construct()
public
__construct([string $rules = '' ][, bool $live = false ][, bool $blur = false ][, int $debounce = 300 ]) : mixed
Parameters
- $rules : string = ''
- $live : bool = false
- $blur : bool = false
- $debounce : int = 300