Browse Source

给downlistcombo开一些接口

es6
windy 8 years ago
parent
commit
9b79fac8ca
  1. 6
      bi/widget.js
  2. 6
      docs/widget.js
  3. 6
      src/widget/downlist/combo.downlist.js

6
bi/widget.js

@ -3496,6 +3496,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
height: 25, height: 25,
items: [], items: [],
adjustLength: 0, adjustLength: 0,
direction: "bottom",
el: {} el: {}
}) })
}, },
@ -3525,6 +3526,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
type: 'bi.combo', type: 'bi.combo',
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
adjustLength: o.adjustLength, adjustLength: o.adjustLength,
direction: o.direction,
el: BI.createWidget(o.el, { el: BI.createWidget(o.el, {
type: "bi.icon_trigger", type: "bi.icon_trigger",
extraCls: o.iconCls ? o.iconCls : "pull-down-font", extraCls: o.iconCls ? o.iconCls : "pull-down-font",
@ -3547,6 +3549,10 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
this.downlistcombo.hideView(); this.downlistcombo.hideView();
}, },
showView: function () {
this.downlistcombo.showView();
},
populate: function (items) { populate: function (items) {
this.popupview.populate(items); this.popupview.populate(items);
}, },

6
docs/widget.js

@ -3496,6 +3496,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
height: 25, height: 25,
items: [], items: [],
adjustLength: 0, adjustLength: 0,
direction: "bottom",
el: {} el: {}
}) })
}, },
@ -3525,6 +3526,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
type: 'bi.combo', type: 'bi.combo',
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
adjustLength: o.adjustLength, adjustLength: o.adjustLength,
direction: o.direction,
el: BI.createWidget(o.el, { el: BI.createWidget(o.el, {
type: "bi.icon_trigger", type: "bi.icon_trigger",
extraCls: o.iconCls ? o.iconCls : "pull-down-font", extraCls: o.iconCls ? o.iconCls : "pull-down-font",
@ -3547,6 +3549,10 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
this.downlistcombo.hideView(); this.downlistcombo.hideView();
}, },
showView: function () {
this.downlistcombo.showView();
},
populate: function (items) { populate: function (items) {
this.popupview.populate(items); this.popupview.populate(items);
}, },

6
src/widget/downlist/combo.downlist.js

@ -9,6 +9,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
height: 25, height: 25,
items: [], items: [],
adjustLength: 0, adjustLength: 0,
direction: "bottom",
el: {} el: {}
}) })
}, },
@ -38,6 +39,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
type: 'bi.combo', type: 'bi.combo',
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
adjustLength: o.adjustLength, adjustLength: o.adjustLength,
direction: o.direction,
el: BI.createWidget(o.el, { el: BI.createWidget(o.el, {
type: "bi.icon_trigger", type: "bi.icon_trigger",
extraCls: o.iconCls ? o.iconCls : "pull-down-font", extraCls: o.iconCls ? o.iconCls : "pull-down-font",
@ -60,6 +62,10 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
this.downlistcombo.hideView(); this.downlistcombo.hideView();
}, },
showView: function () {
this.downlistcombo.showView();
},
populate: function (items) { populate: function (items) {
this.popupview.populate(items); this.popupview.populate(items);
}, },

Loading…
Cancel
Save