forked from ezreal/BI-FR-MIX-FRONT
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
999 B
35 lines
999 B
/** |
|
* 对bi.subject.tab的魔改 |
|
*/ |
|
;!(function () { |
|
|
|
/** |
|
* 新增下面tab栏的图标 |
|
* important |
|
*/ |
|
BI.Plugin.configRender("bi.subject.tab", function (renderObj) { |
|
/** |
|
* 可以修改render方法返回的json对象 |
|
* important |
|
*/ |
|
var items = ((((renderObj.items)[1]).items)[2]).items; |
|
/*var x = BI.deepClone(items[1]); |
|
x.title = "新增复杂报表";*/ |
|
BI.each(BI.Front.SUPPORT_REPORT, function (index, item) { |
|
items.push({ |
|
type: "bi.icon_button", |
|
cls: item.iconCls, |
|
forceNotSelected: true, |
|
height: 16, |
|
iconHeight: 16, |
|
iconWidth: 16, |
|
title: "新增"+item.text, |
|
width: 32, |
|
handler: function () { |
|
BI.isFunction(item.addAction) && item.addAction(); |
|
} |
|
}) |
|
}) |
|
return renderObj; |
|
}); |
|
})(); |