FormFieldConf
in package
Read onlyYes
Tags
Table of Contents
Properties
- $autocomplete : string|null
- $default : IDefaultCallable|null
- $id : string|null
- $isRequired : bool
- $label : string
- $model : IModel|null
- $rangeConstraint : IRangeConstraint|null
- $type : FormFieldType
- $values : null|array<string|int, mixed>|Traversable
Methods
- __construct() : mixed
Properties
$autocomplete
public
string|null
$autocomplete
$default
public
IDefaultCallable|null
$default
$id
public
string|null
$id
$isRequired
public
bool
$isRequired
$label
public
string
$label
$model
public
IModel|null
$model
$rangeConstraint
public
IRangeConstraint|null
$rangeConstraint
$type
public
FormFieldType
$type
$values
public
null|array<string|int, mixed>|Traversable
$values
Methods
__construct()
public
__construct(IModel|null $model, string $label, string|null $autocomplete, IDefaultCallable<string|int, T>|null $default, string|null $id, bool $isRequired, IRangeConstraint|null $rangeConstraint, FormFieldType $type, null|fieldvalues $values) : mixed
Parameters
- $model : IModel|null
-
The data model for the field's value.
- $label : string
-
The label to describe to the user the field.
- $autocomplete : string|null
- $default : IDefaultCallable<string|int, T>|null
-
A function to call with the submitted data to set the value of the field in case no value was submitted.
- $id : string|null
- $isRequired : bool
- $rangeConstraint : IRangeConstraint|null
- $type : FormFieldType
-
The input type of the field.
- $values : null|fieldvalues
-
All the values allowed for the field.