企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 配置项`page` > 显示表格分页 参数`boolean $page 是否显示表格分页` > 值`true`开启分页,表格构建器默认开启分页 > 值`false`关闭分页 示例代码: ~~~ return ViewBuilder::table() ->setPage(false) ->setColumns([ 'username' => table_column_helper('用户名', ['style' => ['min-width' => '100px']]), 'email' => table_column_helper('邮箱', ['style' => ['min-width' => '200px']]), ]) ->setQuery(function () { $query = AdminUser::find()->select(['id', 'username', 'email']); return $query; }) ->render($this); ~~~ 图示: ![](https://img.kancloud.cn/53/96/5396a35fc8456f26a6530fd71ba17d9f_1038x949.png)