Select
class Select extends FormItem
Traits
Properties
protected Fluent | $fieldAttr | 字段的属性 | from UseFieldAttr |
protected mixed | $default | 默认的数据 | from FormItem |
array read-only | $rules | 规则 | from FormItem |
protected bool | $toModel | 是否将此KEY, 加入提交模型 |
from FormItem |
string read-only | $label | 标签 | from FormItem |
string read-only | $name | Name | from FormItem |
Methods
false|Application|Factory|Validator
getValidator(array $input)
Get validator for this field.
from
FormItem
struct()
返回当前表单字段的结构
Details
in
UseFieldAttr at line 20
protected
fieldAttrInit()
No description
in
UseFieldAttr at line 29
protected object
fieldAttr()
获取属性列表
in
UseFieldAttr at line 40
UseFieldAttr
setAttribute($attr, $value)
字段属性
in
UseFieldAttr at line 51
mixed
getAttribute($attr)
获取属性
in
FormItem at line 77
__construct(string $name, string $label)
表单条目
in
FormItem at line 121
string
__get($attr)
获取字段属性
in
FormItem at line 133
false|Application|Factory|Validator
getValidator(array $input)
Get validator for this field.
at line 14
struct()
返回当前表单字段的结构
in
FormItem at line 185
mixed
getDefault()
默认数据值
in
FormItem at line 194
bool
getToModel()
此条件是否加入到模型
in
FormItem at line 203
protected object
attributes()
获取属性列表
in
UseOptions at line 17
UseOptions
options(array|callable|string|Arrayable $options = [])
Set options.
in
UseOptions at line 50
UseOptions
filterable()
是否选项可搜索
in
UsePlaceholder at line 15
UsePlaceholder
placeholder(array|string $ph)
No description
in
UseDependence at line 16
UseDependence
depend(string $name, string $params = '')
使用网络数据加载配置项