|
|
@ -9,17 +9,22 @@ BI.ColorChooser = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.ColorChooser.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.ColorChooser.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-color-chooser", |
|
|
|
baseCls: "bi-color-chooser bi-border bi-focus-shadow", |
|
|
|
value: "", |
|
|
|
value: "", |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
el: {} |
|
|
|
el: {}, |
|
|
|
|
|
|
|
attributes: { |
|
|
|
|
|
|
|
tabIndex: 0 |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.ColorChooser.superclass._init.apply(this, arguments); |
|
|
|
BI.ColorChooser.superclass._init.apply(this, arguments); |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
if (o.height) { |
|
|
|
|
|
|
|
this.setHeight(o.height - 2); |
|
|
|
|
|
|
|
} |
|
|
|
o.value = o.value || ""; |
|
|
|
o.value = o.value || ""; |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
@ -33,8 +38,8 @@ BI.ColorChooser = BI.inherit(BI.Widget, { |
|
|
|
ref: function (_ref) { |
|
|
|
ref: function (_ref) { |
|
|
|
self.trigger = _ref; |
|
|
|
self.trigger = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
width: o.el.type ? o.width : o.width - 2, |
|
|
|
width: o.width, |
|
|
|
height: o.el.type ? o.height : o.height - 2 |
|
|
|
height: o.height |
|
|
|
}, o.el), |
|
|
|
}, o.el), |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
el: BI.extend({ |
|
|
|
el: BI.extend({ |
|
|
|