05.07.2021, 19:04
(31.03.2020, 14:33)admin Wrote: Use this Custom JS, change addresses and additional class (setpoint in this example) as needed. Note that it will only work when "show control" is enabled.
Code:$(function() {
if (typeof grp != 'object') {
return;
}
var minobj = '32/1/5';
var maxobj = '32/1/6';
var el = $('.setpoint').find('.control-spinner');
function setminmax() {
var min = grp.getvalue(minobj);
var max = grp.getvalue(maxobj);
el.spinner('setoptions', min, max);
}
grp.listen(minobj, setminmax);
grp.listen(maxobj, setminmax);
});
Hi,
This custom JS work fine but i have one problem.
When i set a object with this additionnal class, i can't change setpoint by 0,5 step. Only one by one.
I modifiy this JS for add one decimal, but i can't find parametre for change this step..
Any ideas ?
Thanks.
BR
Maxence