TablePlugin
class TablePlugin
Constants
NAME_BATCH |
|
NAME_COLS |
|
NAME_ACTION |
|
NAME_SORT |
|
Properties
bool | $enableSelection | 是否启用选择项 | |
array | $pagesizeOptions | 分页选项 | |
protected int | $pagesize | 分页数 | |
Collection|Column[] | $columns | 所有的列数据 |
Methods
__construct()
No description
add(string $name, string $label = '', bool $after = true)
添加列到组件, 最后的 name 形式是 name 或者 relation.name
Collection
visibleCols()
可见的列实例
array
visibleColsName()
可见列名称
string
__get(string $name)
获取属性
enableSelection()
是否开启选择器
array
struct()
返回结构化的数据
Details
at line 50
__construct()
No description
at line 62
Column
add(string $name, string $label = '', bool $after = true)
添加列到组件, 最后的 name 形式是 name 或者 relation.name
at line 94
Column
action(Closure $closure, string $title = '操作')
deprecated
deprecated
添加列操作, 这种列操作的写法无法在列表中写两列, 使用一下这种方式编写 $table->add('handle', '操作')->asAction(function(){})
at line 103
Collection
visibleCols()
可见的列实例
at line 120
array
visibleColsName()
可见列名称
at line 131
string
__get(string $name)
获取属性
at line 140
TablePlugin
enableSelection()
是否开启选择器
at line 150
array
struct()
返回结构化的数据