ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
### 配置项`toolbarRefresh` > 配置工具栏刷新按钮 参数`array $options 选项` > -`title string 按钮名称,默认:` > -`icon string 按钮图标,默认: glyphicon glyphicon-refresh` 代码示例: ~~~ return ViewBuilder::table() ->setTitle('会员列表') ->setPage(true) ->setHideCheckbox(false) ->setRowActions([ table_action_helper('ajax', [ 'title' => '解封/封停', 'icon' => 'fa fa-lock', 'route' => 'admin/index/disable', 'params' => ['id', 'status'], 'method' => 'post', ]), table_action_helper('division', []), table_action_helper('modal', [ 'title' => '编辑', 'icon' => 'fa fa-pencil-square-o', 'route' => 'admin/index/edit', 'width' => '60%', 'height' => '80%', ]), table_action_helper('page', [ 'title' => '新增', 'icon' => 'fa fa-plus', 'route' => 'admin/index/add', ]), ]) ->setToolbarRefresh() ->setColumns([ 'password', 'username' => table_column_helper('用户名', ['style' => ['min-width' => '100px']]), 'an_mobile' => table_column_helper('电话', ['style' => ['min-width' => '100px']], function($item){ return '+' . $item['an'] . ' ' . $item['mobile']; }), 'email' => table_column_helper('邮箱', ['style' => ['min-width' => '200px']]), ]) ->setQuery(function () { $query = AdminUser::find()->select(['id', 'username', 'password', 'email', 'an', 'mobile', 'status']); return $query; }) ->setOrderBy('id DESC') ->setPrimaryKey('id') ->render($this); ~~~ 示例图示: ![](https://img.kancloud.cn/cd/22/cd22adbcf07a6e323b7f02a5e6f53029_1688x930.png)