$view
$view : \Think\view
视图实例对象
数据列表自动生成器
addTopButton(string $type, $attribute = null) : $this
加入一个列表顶部工具栏按钮 在使用预置的几种按钮时,比如我想改变新增按钮的名称 那么只需要$builder->addTopButton('add', array('title' => '换个马甲')) 如果想改变地址甚至新增一个属性用上面类似的定义方法
| string | $type | 按钮类型,主要有add/resume/forbid/recycle/restore/delete/self七几种取值 |
| $attribute |
setTabNav( $tab_list, $current_tab) : $this
设置Tab按钮列表
| $tab_list | Tab列表 array( 'title' => '标题', 'href' => 'http://www.corethink.cn' ) |
|
| $current_tab | 当前tab |
addRightButton(string $type, $attribute = null) : $this
加入一个数据列表右侧按钮 在使用预置的几种按钮时,比如我想改变编辑按钮的名称 那么只需要$builder->addRightpButton('edit', array('title' => '换个马甲')) 如果想改变地址甚至新增一个属性用上面类似的定义方法 因为添加右侧按钮的时候你并没有办法知道数据ID,于是我们采用__data_id__作为约定的标记 __data_id__会在display方法里自动替换成数据的真实ID
| string | $type | 按钮类型,edit/forbid/recycle/restore/delete/self六种取值 |
| $attribute |