Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.touch();
}
});
let FixedFloatRangeSliderModel = widgets_ctrl.FloatRangeSliderModel.extend({
defaults: _.extend({}, widgets_ctrl.FloatRangeSliderModel.prototype.defaults, {
_model_name : 'FixedFloatRangeSliderModel',
_view_name : 'FixedFloatRangeSliderView',
_model_module : 'odysis',
_view_module : 'odysis',
_model_module_version : odysis_version,
_view_module_version : odysis_version
})
});
let FixedFloatRangeSliderView = widgets_ctrl.FloatRangeSliderView.extend(FixedFloatSliderBaseView).extend({
render: function() {
FixedFloatRangeSliderView.__super__.render.apply(this, arguments);
this.$slider.slider('option', 'min', 0);
this.$slider.slider('option', 'max', 1);
},
update: function(options) {
FixedFloatRangeSliderView.__super__.update.apply(this, arguments);
this.$slider.slider('option', 'range', true);
let value = this.model.get('value');
this.readout.textContent = this.valueToString(value);
value = value.map(x => this.scale(x));