This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Visualization problem
#7
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
Reply


Messages In This Thread
Visualization problem - by AlexLV - 04.08.2022, 17:24
RE: Visualization problem - by Daniel - 04.08.2022, 17:26
RE: Visualization problem - by AlexLV - 04.08.2022, 17:36
RE: Visualization problem - by Daniel - 04.08.2022, 17:41
RE: Visualization problem - by AlexLV - 04.08.2022, 17:57
RE: Visualization problem - by admin - 05.08.2022, 06:24
RE: Visualization problem - by AlexLV - 05.08.2022, 15:41
RE: Visualization problem - by admin - 05.08.2022, 15:53
RE: Visualization problem - by AlexLV - 05.08.2022, 15:56
RE: Visualization problem - by admin - 05.08.2022, 16:28

Forum Jump: