Checkbox
class Checkbox extends Radio
Traits
Properties
protected mixed | $default | 默认的数据 | from FormItem |
protected array | $rules | 规则 | from FormItem |
protected bool | $toModel | 是否将此KEY, 加入提交模型 |
from FormItem |
protected string | $label | from FormItem |
Methods
false|Application|Factory|Validator
getValidator(array $input)
Get validator for this field.
from
FormItem
object
attributes()
匹配 max 规则
Details
in
FormItem at line 78
__construct(string $name, string $label)
表单条目
at line 11
FormItem
default($value)
设置默认值, 当返回数据无此字段时候选择此值作为默认值
in
FormItem at line 135
string
getName()
获取字段名字
in
FormItem at line 147
false|Application|Factory|Validator
getValidator(array $input)
Get validator for this field.
in
FormItem at line 169
struct()
返回当前表单字段的结构
in
FormItem at line 199
mixed
getDefault()
默认数据值
in
FormItem at line 208
bool
getToModel()
此条件是否加入到模型
in
FormItem at line 217
protected array
getRules()
校验规则
in
FormItem at line 227
protected mixed
getAttribute($attr)
获取属性
at line 21
protected object
attributes()
匹配 max 规则
in
UseOptions at line 17
UseOptions
options(array|callable|string|Arrayable $options = [])
Set options.
in
UseOptions at line 51
UseOptions
filterable()
是否选项可搜索
at line 40
Checkbox
checkAll()
No description