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.

42 lines
1.0 KiB

8 years ago
/**
* 表示当前对象
*
* Created by GUY on 2015/9/7.
* @class BI.EL
* @extends BI.Widget
*/
BI.EL = BI.inherit(BI.Widget, {
_defaultConfig: function () {
return BI.extend(BI.EL.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-el",
el: {},
layout: {}
});
},
_init: function () {
BI.EL.superclass._init.apply(this, arguments);
var self = this, o = this.options;
this.ele = BI.createWidget(o.el);
BI.createWidget(o.layout, {
type: "bi.adaptive",
8 years ago
element: this,
8 years ago
items: [this.ele]
});
this.ele.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
7 years ago
});
8 years ago
},
setValue: function (v) {
this.ele.setValue(v);
},
getValue: function () {
return this.ele.getValue();
},
populate: function () {
this.ele.populate.apply(this, arguments);
}
});
7 years ago
BI.shortcut("bi.el", BI.EL);