class MultiSelect extends Select

Traits

Properties

protected mixed $default 默认的数据 from  FormItem
protected $rules
protected bool $toModel

是否将此KEY, 加入提交模型

from  FormItem
protected string $label from  FormItem

Methods

__construct(string $name, string $label)

表单条目

from  FormItem
rules(array $value)

设置验证规则

from  FormItem
default($value)

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

from  FormItem
disabled()

No description

from  FormItem
setAttribute($attr, $value)

字段属性

from  FormItem
string
getName()

获取字段名字

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

Get validator for this field.

from  FormItem
struct()

返回当前表单字段的结构

from  FormItem
help(string $help = '')

帮助文本

from  FormItem
mixed
getDefault()

默认数据值

from  FormItem
bool
getToModel()

此条件是否加入到模型

from  FormItem
array
getRules()

校验规则

from  FormItem
mixed
getAttribute($attr)

获取属性

from  FormItem
object
attributes()

匹配 max 规则

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

Set options.

filterable()

是否选项可搜索

placeholder(array|string $ph)

No description

Details

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

表单条目

Parameters

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

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

设置验证规则

Parameters

array $value

Return Value

FormItem

in FormItem at line 106
FormItem default($value)

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

Parameters

$value

Return Value

FormItem

in FormItem at line 112
FormItem disabled()

No description

Return Value

FormItem

in FormItem at line 124
FormItem setAttribute($attr, $value)

字段属性

Parameters

$attr
$value

Return Value

FormItem

in FormItem at line 135
string getName()

获取字段名字

Return Value

string

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

Get validator for this field.

Parameters

array $input

Return Value

false|Application|Factory|Validator

in FormItem at line 169
struct()

返回当前表单字段的结构

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

帮助文本

Parameters

string $help

Return Value

FormItem

in FormItem at line 199
mixed getDefault()

默认数据值

Return Value

mixed

in FormItem at line 208
bool getToModel()

此条件是否加入到模型

Return Value

bool

in FormItem at line 217
protected array getRules()

校验规则

Return Value

array

in FormItem at line 227
protected mixed getAttribute($attr)

获取属性

Parameters

$attr

Return Value

mixed

at line 20
protected object attributes()

匹配 max 规则

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 51
UseOptions filterable()

是否选项可搜索

Return Value

UseOptions

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

No description

Parameters

array|string $ph 占位符

Return Value

UsePlaceholder