FilterWidget deprecated
final class FilterWidget extends FilterPlugin
deprecated
Traits
Properties
protected Collection | $scopes | 全局范围 | from UseScopes |
protected Collection | $items | 表单内的表单条目集合 | from FilterPlugin |
Methods
mixed
scope(string $key, string $label)
添加全局范围, 在添加全局范围之后, 如果不传入 Scope, 则默认为第一个 Scope
from
UseScopes
FormItem|$this
__call(string $method, array $arguments = [])
Generate items and append to filter list
from
FilterPlugin
Details
in
UseScopes at line 24
mixed
scope(string $key, string $label)
添加全局范围, 在添加全局范围之后, 如果不传入 Scope, 则默认为第一个 Scope
in
UseScopes at line 36
Collection
getScopes()
Get all filter scopes.
in
UseScopes at line 45
Collection
getScopesStruct()
范围结构
in
UseScopes at line 57
Scope|null
getCurrentScope()
获取当前的Scope, 支持未传入
in
FilterPlugin at line 60
__construct()
No description
in
FilterPlugin at line 71
FilterPlugin
addItem(FilterItem $item)
添加搜索条件
in
FilterPlugin at line 81
Collection
items()
获取表单的所有字段
in
FilterPlugin at line 95
FormItem|$this
__call(string $method, array $arguments = [])
Generate items and append to filter list
in
FilterPlugin at line 119
array
conditions()
查询条件
in
FilterPlugin at line 132
struct()
返回结构 规则解析参考 : https://github.com/yiminghe/async-validator
in
FilterPlugin at line 154
void
action(int $width = 4, bool $export = false)
按钮的宽度(默认 4), 这里不会处理按钮的位置
in
FilterPlugin at line 165
bool
getEnableExport()
是否启用了导出
in
FilterPlugin at line 176
array
filterConditions()
Get all conditions of the filters.
in
FilterPlugin at line 43
Where
where(Closure $query, mixed $label, mixed $column)
自定义查询条件
in
FilterPlugin at line 43
Equal
equal(mixed $column, mixed $label)
相等
in
FilterPlugin at line 43
NotEqual
notEqual(mixed $column, mixed $label)
不等
in
FilterPlugin at line 43
Like
like(mixed $column, mixed $label)
匹配搜索
in
FilterPlugin at line 43
StartsWith
startsWith(mixed $column, mixed $label)
前半部分匹配
in
FilterPlugin at line 43
EndsWith
endsWith(mixed $column, mixed $label)
后半部分匹配
in
FilterPlugin at line 43
Gt
gt(mixed $column, mixed $label)
大于
in
FilterPlugin at line 43
Gte
gte(mixed $column, mixed $label)
大于等于
in
FilterPlugin at line 43
Lt
lt(mixed $column, mixed $label)
小于
in
FilterPlugin at line 43
Lte
lte(mixed $column, mixed $label)
小于
in
FilterPlugin at line 43
In
in(mixed $column, mixed $label)
包含
in
FilterPlugin at line 43
NotIn
notIn(mixed $column, mixed $label)
不包含
in
FilterPlugin at line 43
Between
between(mixed $column, mixed $label)
介于...