FilterItem
abstract class FilterItem implements Structable
过滤条目
Properties
protected | $width | ||
read-only | $name | 当前列的名称 | |
protected string | $type | 默认 | |
protected string | $label | Label of presenter. |
|
read-only | $value | 输入值 | |
protected array|string|null | $defaultValue | 默认值 | |
protected string | $query | Query for filter. |
|
protected array | $attr | 属性 | |
protected FilterItem | $parent |
Methods
width($width)
设置列宽度
array|mixed|null
condition(array $inputs)
获取查询条件
struct()
可结构化并返回
__get($attr)
No description
default(null $default = null)
Set default value for filter.
array|string
getValue()
Get value of current filter.
void
defaultValue(array $inputs)
默认值
array
sanitizeInputs($inputs)
No description
string
formatLabel(string $label)
格式化 Label
array
buildCondition()
Build conditions of filter.
array
buildRelationQuery()
Build query condition of model relation.
setAttribute(string|array $attr, mixed $value = '')
字段属性
Details
at line 76
__construct(string|Closure $column = '', string $label = '')
AbstractFilter constructor.
at line 86
FilterItem
width($width)
设置列宽度
at line 95
setParent(FilterItem $filter)
No description
at line 106
array|mixed|null
condition(array $inputs)
获取查询条件
at line 121
struct()
可结构化并返回
at line 135
__get($attr)
No description
at line 150
FilterItem
default(null $default = null)
Set default value for filter.
at line 164
array|string
getValue()
Get value of current filter.
at line 174
protected void
defaultValue(array $inputs)
默认值
at line 189
protected array
sanitizeInputs($inputs)
No description
at line 210
protected string
formatLabel(string $label)
格式化 Label
at line 222
protected array
buildCondition()
Build conditions of filter.
at line 239
protected array
buildRelationQuery()
Build query condition of model relation.
at line 260
protected FilterItem
setAttribute(string|array $attr, mixed $value = '')
字段属性