|
|
|
@ -58,7 +58,8 @@ BI.SingleSlider = BI.inherit(BI.Single, {
|
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
cls: "slider-wrapper", |
|
|
|
|
columnSize: ["fill"], |
|
|
|
|
items: [{ |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
@ -67,7 +68,8 @@ BI.SingleSlider = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
height: c.SLIDER_HEIGHT |
|
|
|
|
}], |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
hgap: c.SLIDER_WIDTH_HALF, |
|
|
|
|
height: c.SLIDER_HEIGHT |
|
|
|
|
}); |
|
|
|
@ -124,17 +126,22 @@ BI.SingleSlider = BI.inherit(BI.Single, {
|
|
|
|
|
this._setVisible(false); |
|
|
|
|
return { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
el: this.track, |
|
|
|
|
width: "100%", |
|
|
|
|
height: c.TRACK_HEIGHT |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
hgap: c.TRACK_GAP_HALF, |
|
|
|
|
height: c.TRACK_HEIGHT |
|
|
|
|
}, |
|
|
|
@ -149,16 +156,19 @@ BI.SingleSlider = BI.inherit(BI.Single, {
|
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: "bi.horizontal_auto", |
|
|
|
|
items: [this.label] |
|
|
|
|
}], |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
// height: c.EDITOR_HEIGHT
|
|
|
|
|
}, |
|
|
|
|
top: 0, |
|
|
|
|
left: 0, |
|
|
|
|
width: "100%" |
|
|
|
|
}] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -214,12 +224,15 @@ BI.SingleSlider = BI.inherit(BI.Single, {
|
|
|
|
|
_createTrackWrapper: function () { |
|
|
|
|
return BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
el: this.grayTrack, |
|
|
|
|
top: 0, |
|
|
|
|
left: 0, |
|
|
|
@ -229,15 +242,18 @@ BI.SingleSlider = BI.inherit(BI.Single, {
|
|
|
|
|
top: 0, |
|
|
|
|
left: 0, |
|
|
|
|
width: "0%" |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
hgap: 8, |
|
|
|
|
height: 8 |
|
|
|
|
}, |
|
|
|
|
top: 8, |
|
|
|
|
left: 0, |
|
|
|
|
width: "100%" |
|
|
|
|
}] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -322,8 +338,8 @@ BI.SingleSlider = BI.inherit(BI.Single, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setMinAndMax: function (v) { |
|
|
|
|
var minNumber = BI.parseFloat(v.min); |
|
|
|
|
var maxNumber = BI.parseFloat(v.max); |
|
|
|
|
var minNumber = this.options.min = BI.parseFloat(v.min); |
|
|
|
|
var maxNumber = this.options.max = BI.parseFloat(v.max); |
|
|
|
|
if ((!isNaN(minNumber)) && (!isNaN(maxNumber)) && (maxNumber > minNumber)) { |
|
|
|
|
this.min = minNumber; |
|
|
|
|
this.max = maxNumber; |
|
|
|
|