|
|
|
@ -90018,7 +90018,8 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
popup: { |
|
|
|
|
el: this.popupview, |
|
|
|
|
stopPropagation: true, |
|
|
|
|
maxHeight: 1000 |
|
|
|
|
maxHeight: 1000, |
|
|
|
|
minWidth: 140 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -90100,7 +90101,7 @@ BI.DownListGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
BI.DownListGroup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit(BI.Single, { |
|
|
|
|
BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
var conf = BI.DownListItem.superclass._defaultConfig.apply(this, arguments); |
|
|
|
|
return BI.extend(conf, { |
|
|
|
@ -90123,59 +90124,77 @@ BI.shortcut("bi.down_list_group", BI.DownListGroup);BI.DownListItem = BI.inherit
|
|
|
|
|
BI.DownListItem.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.text = BI.createWidget({ |
|
|
|
|
type: "bi.icon_text_item", |
|
|
|
|
element: this, |
|
|
|
|
height: o.height, |
|
|
|
|
type: "bi.label", |
|
|
|
|
cls: "list-item-text", |
|
|
|
|
textAlign: "left", |
|
|
|
|
hgap: o.textHgap, |
|
|
|
|
vgap: o.textVgap, |
|
|
|
|
lgap: o.textLgap, |
|
|
|
|
rgap: o.textRgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
logic: o.logic, |
|
|
|
|
selected: o.selected, |
|
|
|
|
disabled: o.disabled, |
|
|
|
|
iconHeight: o.iconHeight, |
|
|
|
|
iconWidth: o.iconWidth, |
|
|
|
|
textHgap: o.textHgap, |
|
|
|
|
textVgap: o.textVgap, |
|
|
|
|
textLgap: o.textLgap, |
|
|
|
|
textRgap: o.textRgap, |
|
|
|
|
father: o.father, |
|
|
|
|
bubble: o.bubble |
|
|
|
|
}); |
|
|
|
|
this.text.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
keyword: o.keyword, |
|
|
|
|
height: o.height |
|
|
|
|
}); |
|
|
|
|
this.text.on(BI.IconTextItem.EVENT_CHANGE, function () { |
|
|
|
|
self.fireEvent(BI.DownListItem.EVENT_CHANGE); |
|
|
|
|
this.icon = BI.createWidget({ |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
width: 36, |
|
|
|
|
height: o.height, |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.icon", |
|
|
|
|
width: o.iconWidth, |
|
|
|
|
height: o.iconHeight |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
// this.setSelected(o.selected);
|
|
|
|
|
|
|
|
|
|
BI.createWidget(BI.extend({ |
|
|
|
|
element: this |
|
|
|
|
}, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left), BI.extend(o.logic, { |
|
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, this.icon, this.text) |
|
|
|
|
})))); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
|
this.text.doRedMark.apply(this.text, arguments); |
|
|
|
|
setValue: function () { |
|
|
|
|
if (!this.isReadOnly()) { |
|
|
|
|
this.text.setValue.apply(this.text, arguments); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
unRedMark: function () { |
|
|
|
|
this.text.unRedMark.apply(this.text, arguments); |
|
|
|
|
getValue: function () { |
|
|
|
|
return this.text.getValue(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
isSelected: function () { |
|
|
|
|
return this.text.isSelected(); |
|
|
|
|
setText: function () { |
|
|
|
|
this.text.setText.apply(this.text, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setSelected: function (b) { |
|
|
|
|
this.text.setSelected(b); |
|
|
|
|
// if (b === true) {
|
|
|
|
|
// this.element.addClass("dot-e-font");
|
|
|
|
|
// } else {
|
|
|
|
|
// this.element.removeClass("dot-e-font");
|
|
|
|
|
// }
|
|
|
|
|
getText: function () { |
|
|
|
|
return this.text.getText(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
this.text.setValue(v); |
|
|
|
|
doClick: function () { |
|
|
|
|
BI.DownListItem.superclass.doClick.apply(this, arguments); |
|
|
|
|
if (this.isValid()) { |
|
|
|
|
this.fireEvent(BI.DownListItem.EVENT_CHANGE, this.getValue(), this); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.text.getValue(); |
|
|
|
|
doRedMark: function () { |
|
|
|
|
this.text.doRedMark.apply(this.text, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
unRedMark: function () { |
|
|
|
|
this.text.unRedMark.apply(this.text, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doHighLight: function () { |
|
|
|
|
this.text.doHighLight.apply(this.text, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
unHighLight: function () { |
|
|
|
|
this.text.unHighLight.apply(this.text, arguments); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.DownListItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
@ -90208,7 +90227,7 @@ BI.shortcut("bi.down_list_item", BI.DownListItem);BI.DownListGroupItem = BI.inhe
|
|
|
|
|
this.icon1 = BI.createWidget({ |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: o.iconCls1, |
|
|
|
|
width: 24, |
|
|
|
|
width: 36, |
|
|
|
|
forceNotSelected: true, |
|
|
|
|
selected: this._digest(o.value) |
|
|
|
|
}); |
|
|
|
|