fastadmin隐藏列表页右侧导出,搜索这一栏的按钮
直接在index.htmldata-show-export="false" data-show-toggle="false" data-show-columns="false"
data-search="false" data-common-Search="false"我只需要隐藏导出,所以代码如下:
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-show-export="false"
data-operate-edit="{:$auth->check('map/shortlink/edit')}"
data-operate-del="{:$auth->check('map/shortlink/del')}"
width="100%">
</table>
也可以在js文件中处理,如下:
search: true,
commonSearch: false,
showToggle: false,
showExport: false,
exportTypes: ['excel'],search=false的时候搜索框不显示,commonSearch=false的时候搜索放大镜不显示,showToggle=false的时候切换视图按钮不显示,showExport=false的时候导出按钮不显示
页:
[1]