示例说明
       修改灵活分析分页栏的字体大小。

       
 
注意:修改完样式后要重新刷新IE页面才会生效。
设置方法

  1. 在资源定制中,创建一张灵活分析(带参数);
  2. 选中灵活分析,右键选择 编辑宏 进入报表宏界面。
  3. 在报表宏界面新建客户端模块,在弹出的新建模块对话框中选择对象为simpleReport;事件为onRender;并把下面宏代码复制到代码区域。

宏类型

类型

对象

事件

ClientSide

simpleReport

onRender

宏代码

function main(simpleReport, simpleReportContext) {
    var pagePanel = simpleReport.pagePanel; //分页栏面版
    if (pagePanel) {
        debugger;
        var td = pagePanel.firstpage.parentNode;
        td.style.fontSize = "20px"; //设置整体字体大小
        td.style.color = "#ff0000"; //设置整体字体颜色
        pagePanel.curpage.style.fontSize = "20px"; //当前页部分输入框内数字字体颜色     
        pagePanel.curpage.style.width = "70px";
        pagePanel.curpage.style.height = "20px";
        pagePanel.curpage.style.color = "#ff0000";
        pagePanel.rowcount.style.width = "70px"; //每页行数部分输入框字体颜色
        pagePanel.rowcount.style.height = "20px";
        pagePanel.rowcount.style.color = "#ff0000";
        pagePanel.pagePanelFont.color = "#ff0000";
        pagePanel.pagePanelDisableFont.color = "gray"; //设置不可点按钮颜色为灰色
    }
}