fineui是帆软报表和BI产品线所使用的前端框架。
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.

27 lines
706 B

8 years ago
/**
* guy
* 由一个元素切换到另一个元素的行为
* @class BI.ShowAction
* @extends BI.Action
*/
BI.ShowAction = BI.inherit(BI.Action, {
8 years ago
_defaultConfig: function () {
return BI.extend(BI.ShowAction.superclass._defaultConfig.apply(this, arguments), {});
8 years ago
},
8 years ago
_init: function () {
8 years ago
BI.ShowAction.superclass._init.apply(this, arguments);
},
8 years ago
actionPerformed: function (src, tar, callback) {
8 years ago
tar = tar || this.options.tar;
8 years ago
tar.setVisible(true);
callback && callback();
8 years ago
},
8 years ago
actionBack: function (tar, src, callback) {
8 years ago
tar = tar || this.options.tar;
8 years ago
tar.setVisible(false);
callback && callback();
8 years ago
}
});