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