25.11.2021, 09:27
(25.11.2021, 09:12)admin Wrote: Add this code to Custom JavaScript. Keep in mind that this will only block the visualization elements not the actual writing. By default Link elements and Widgets won't work with this solution. As a work-around you can add clickable class to the elements that the user should be able to click.
Code:$(function() {
if (Globals.user == 'viewer') {
$('.layer > div').addClass('item-read-only');
$('.clickable').removeClass('item-read-only');
}
});
thanks Admin,
Great, work perfect on visu. but could I add clickable class to Alarm link so viewer user can acknowledge alarms?
Also what did you mean by this statement: "Keep in mind that this will only block the visualization elements not the actual writing."
Best Regards,