Did anyone get the slider examples posted here actually get to work?
My set temperature slider always jumps back to the current value and also sends this, not the one I selected.
I figured it needs the sendCmd to be in the callbacks of the slider, however, if I try this:
<div style="display: none;" ng-init="slider = {
value: 0,
options: {
id: 'slider1',
onChange: function(id) {
console.log('on change ' + id);
},
floor: 15,
ceil: 26,
step: 0.5,
precision: 1,
showSelectionBar: true,
selectionBarGradient: {
from: 'white',
to: '#FC0'
}
}
};">
{{slider.value = itemValue('EGBueroThermostat_4_SetTemperature')}}
</div>
<rzslider rz-slider-model="slider.value"
rz-slider-options="slider.options"
ng-click="sendCmd('EGBueroThermostat_4_SetTemperature', slider.value)">
</rzslider>
I get a syntax error…