合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
~~~ return TBuilder('custom')//->setRowList($list) ->setCustomView('showAnswerDetail') ->setTrayMenu([ //'headHtml'=>'自定义头', 'headTitle' => '自定义标题 -<small>"副标题"</small>', 'headList' => [ ['title'=>'简单','desc'=>'简单的描述','icon_class'=>'fa fa-exclamation-circle text-success'], ['title'=>'易用','desc'=>'易用的描述','icon_class'=>'fa fa-exclamation-circle text-warning'], ['title'=>'好扩展','desc'=>'好扩展的描述','icon_class'=>'fa fa-exclamation-circle'], ], 'menuList' => [ ['title'=>'表1','id'=>'pchart1','icon_class'=>'fa fa-bar-chart'], ['title'=>'表2','id'=>'pchart2','icon_class'=>'fa fa-line-chart'], ['title'=>'表3','id'=>'pchart3','icon_class'=>'fa fa-area-chart'], ['title'=>'表4','id'=>'pchart4','icon_class'=>'fa fa-bar-chart'], ] ]) ->layoutView( 'layout_simple' ) ->fetch(); ~~~ 指定内容定位栏配置 ~~~ setTrayMenu([ //'headHtml'=>'自定义头', 'headTitle' => '自定义标题 -<small>"副标题"</small>', 'headList' => [ ['title'=>'简单','desc'=>'简单的描述','icon_class'=>'fa fa-exclamation-circle text-success'], ['title'=>'易用','desc'=>'易用的描述','icon_class'=>'fa fa-exclamation-circle text-warning'], ['title'=>'可扩展','desc'=>'可扩展的描述','icon_class'=>'fa fa-exclamation-circle'], ], 'menuList' => [ ['title'=>'表1','id'=>'pchart1','icon_class'=>'fa fa-bar-chart'], ['title'=>'表2','id'=>'pchart2','icon_class'=>'fa fa-line-chart'], ['title'=>'表3','id'=>'pchart3','icon_class'=>'fa fa-area-chart'], ['title'=>'表4','id'=>'pchart4','icon_class'=>'fa fa-bar-chart'], ] ]) ~~~ ![](https://box.kancloud.cn/b4aeb46bb29f2a8e025d38ab685b86d9_1202x646.png) 图中1,2,3对应关系 1:headHtml 或 headTitle 2:headList 3:menuList * 其id属性需要与页面正文中盒子的id值一致