Hi,
I use this variant:
$(function() {
$('.color-by-value53').each(function(_, el) {
var addr = $(el).data('object');
if (addr) {
grp.listen(addr, function(obj) {
var color;
if (obj.value) {
color = 'red';
}
else {
color = 'Green';
}
$(el).css('color', color).toggleClass('blink', obj.value);
});
}
});
});
When value is changing, colors are changing also, but not blinking..
Once I see it worked than not working anymore..
Also question - for different groups I just change class name here and at visu, is it correct:
$('.color-by-value53') ?? Can I use other class name after dots, what is the rules?
I also tried your variant, just added your part to custom JS and added class blinker to group object at visu, anyway not working..
Alex
I use this variant:
$(function() {
$('.color-by-value53').each(function(_, el) {
var addr = $(el).data('object');
if (addr) {
grp.listen(addr, function(obj) {
var color;
if (obj.value) {
color = 'red';
}
else {
color = 'Green';
}
$(el).css('color', color).toggleClass('blink', obj.value);
});
}
});
});
When value is changing, colors are changing also, but not blinking..
Once I see it worked than not working anymore..
Also question - for different groups I just change class name here and at visu, is it correct:
$('.color-by-value53') ?? Can I use other class name after dots, what is the rules?
I also tried your variant, just added your part to custom JS and added class blinker to group object at visu, anyway not working..
Alex