@ -13,8 +13,8 @@ Demo.Main = BI.inherit(BI.Widget, {
type: "demo.north",
listeners: [{
eventName: Demo.North.EVENT_VALUE_CHANGE,
action: function () {
action: function (v) {
center.setValue(0);
center.setValue(v);
}
}]
@ -13,7 +13,7 @@ Demo.North = BI.inherit(BI.Widget, {
eventName: BI.Button.EVENT_CHANGE,
self.fireEvent(Demo.North.EVENT_VALUE_CHANGE, 0)
self.fireEvent(Demo.North.EVENT_VALUE_CHANGE, "demo.face")
}],
cls: "logo",
@ -14244,11 +14244,15 @@ BI.Widget = BI.inherit(BI.OB, {
if (o.invisible) {
this.element.hide();
if (o.disabled) {
if (o.disabled || o.invalid) {
this.element.addClass("base-disabled disabled");
BI.nextTick(BI.bind(function () {
if (this.options.disabled) {
this.setEnable(false);
if (o.invalid) {
if (this.options.invalid) {
this.element.addClass("base-invalid invalid");
this.setValid(false);
}, this));
},
@ -106,11 +106,15 @@ BI.Widget = BI.inherit(BI.OB, {