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

fieldAttrInit()

No description

object
fieldAttr()

获取属性列表

setAttribute($attr, $value)

字段属性

mixed
getAttribute($attr)

获取属性

__construct(string $name, string $label)

表单条目

from  FormItem
rules(array $value)

设置验证规则

from  FormItem
default($value)

设置默认值, 当返回数据无此字段时候选择此值作为默认值

from  FormItem
disabled()

No description

from  FormItem
string
__get($attr)

获取字段属性

from  FormItem
false|Application|Factory|Validator
getValidator(array $input)

Get validator for this field.

from  FormItem
struct()

返回当前表单字段的结构

help(string $help = '')

帮助文本

from  FormItem
mixed
getDefault()

默认数据值

from  FormItem
bool
getToModel()

此条件是否加入到模型

from  FormItem
object
attributes()

获取属性列表

from  FormItem
options(array|callable|string|Arrayable $options = [])

Set options.

filterable()

是否选项可搜索

placeholder(array|string $ph)

No description

depend(string $name, string $params = '')

使用网络数据加载配置项

Details

in UseFieldAttr at line 20
protected fieldAttrInit()

No description

in UseFieldAttr at line 29
protected object fieldAttr()

获取属性列表

Return Value

object

in UseFieldAttr at line 40
UseFieldAttr setAttribute($attr, $value)

字段属性

Parameters

$attr
$value

Return Value

UseFieldAttr

in UseFieldAttr at line 51
mixed getAttribute($attr)

获取属性

Parameters

$attr

Return Value

mixed

in FormItem at line 77
__construct(string $name, string $label)

表单条目

Parameters

string $name 名称/属性
string $label 标签名称

in FormItem at line 92
FormItem rules(array $value)

设置验证规则

Parameters

array $value

Return Value

FormItem

in FormItem at line 104
FormItem default($value)

设置默认值, 当返回数据无此字段时候选择此值作为默认值

Parameters

$value

Return Value

FormItem

in FormItem at line 110
FormItem disabled()

No description

Return Value

FormItem

in FormItem at line 121
string __get($attr)

获取字段属性

Parameters

$attr

Return Value

string

in FormItem at line 133
false|Application|Factory|Validator getValidator(array $input)

Get validator for this field.

Parameters

array $input

Return Value

false|Application|Factory|Validator

at line 14
struct()

返回当前表单字段的结构

in FormItem at line 175
FormItem help(string $help = '')

帮助文本

Parameters

string $help

Return Value

FormItem

in FormItem at line 185
mixed getDefault()

默认数据值

Return Value

mixed

in FormItem at line 194
bool getToModel()

此条件是否加入到模型

Return Value

bool

in FormItem at line 203
protected object attributes()

获取属性列表

Return Value

object

in UseOptions at line 17
UseOptions options(array|callable|string|Arrayable $options = [])

Set options.

Parameters

array|callable|string|Arrayable $options

Return Value

UseOptions

in UseOptions at line 50
UseOptions filterable()

是否选项可搜索

Return Value

UseOptions

in UsePlaceholder at line 15
UsePlaceholder placeholder(array|string $ph)

No description

Parameters

array|string $ph 占位符

Return Value

UsePlaceholder

in UseDependence at line 16
UseDependence depend(string $name, string $params = '')

使用网络数据加载配置项

Parameters

string $name 名称
string $params 参数

Return Value

UseDependence