页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 前一个 版本 2 当前 »

(本文档仅供参考,仅适用于本文档中的示例报表/场景,若实际报表/场景与示例代码无法完全适配(如使用功能不一致,或多个宏代码冲突等),需根据实际需求开发代码。)

问题说明

       当前在V10版本中,打开电子表格资源会发现新增了如下几个按钮,若是不希望该按钮展示出来,要怎么去处理呢?

解决方案

      可以新建客户端宏去隐藏,类型:ClientSide,对象:spreadsheetReport,事件:onRenderReport,示例代码如下:

function main(spreadsheetReport, isAjaxRefreshCallback) {
    spreadsheetReport.elemToolBarSocialWrap.style.visibility = 'hidden';
    if (spreadsheetReport.elemToolBarSocialWrap.nextSibling) {
        spreadsheetReport.elemToolBarSocialWrap.nextSibling.style.visibility = 'hidden';
    }
}

效果如下图:

  • 无标签