Decimal
class Decimal extends Text
Traits
Properties
protected mixed | $default | 默认数据 | from Text |
protected array | $rules | 规则 | from FormItem |
protected bool | $toModel | 是否将此KEY, 加入提交模型 |
from FormItem |
protected string | $label | from FormItem | |
string | $prepend | from Text |
Methods
__construct(string $name, string $label)
表单条目
false|Application|Factory|Validator
getValidator(array $input)
Get validator for this field.
from
FormItem
digits($decimal)
No description
Details
at line 11
__construct(string $name, string $label)
表单条目
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)
获取属性
in
UseText at line 22
protected object
attributes()
No description
in
UsePlaceholder at line 15
UsePlaceholder
placeholder(array|string $ph)
No description
at line 20
digits($decimal)
No description