02.09.2020, 11:09
This example will set rotate the icon according to object value (data type 5.003 - angle).
Set Additional classes of your object to rotate
Add to Custom JavaScript:
Note that this won't work in the editor, only in the visualization view.
Set Additional classes of your object to rotate
Add to Custom JavaScript:
Code:
$(function(){
$('.rotate').each(function(i, el) {
var $el = $(el), addr = $el.data('object'); // or 'status-object'
grp.listen(addr, function(obj) {
$el.find('.icon').css('transform', 'rotate(' + obj.value + 'deg');
});
});
});