...
代码块 | ||
---|---|---|
| ||
function main(page: IPage) { let toolbar = page.getPageToolbar()//获取仪表盘工具栏接口对象 toolbar.removeButton(9)//点赞按钮 toolbar.removeButton(8)//评论按钮 toolbar.removeButton(7)//分享按钮 toolbar.removeButton(6)//收藏按钮 toolbar.removeButton(4)//下载按钮 toolbar.removeButton(3)//另存 toolbar.removeButton(2)//重载 toolbar.removeButton(1)//刷新 } |
(2)对于仪表盘组件上的工具栏按钮,怎么实现隐藏部分呢?(2)V11版本对于仪表盘组件上的工具栏按钮,怎么实现隐藏部分呢?
解决方案
参考如下宏代码,对于需要隐藏按钮的组件分别创建宏模块:
对象: | 组件 | 事件: | onBeforeRender |
|
问题2:隐藏工具栏
V11版本如何统一隐藏某仪表盘的工具栏和组件工具栏呢?
...
参考wiki在仪表盘自定义了一个按钮调用sql,希望将菜单放到指定的位置,是否可以修改菜单栏起始位置
解决方案
参考下面宏代码修改css样式即可
|