Posts: 286
	Threads: 64
	Joined: Sep 2015
	
Reputation: 
0
	 
	
	
		Hello!
I have alarm objects and need to change Object's Background to red color when is active, and grey when inactive. I like the default button and I want this to red color.
Is it posible? 
Thanks!
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 942
	Threads: 161
	Joined: Jul 2015
	
Reputation: 
33
	 
	
	
		Everything in visualisation is possible via "Custom javascript". Can you give some more info about:
- is this object is shown as text or image?
- if text(what text is for on and what for off)
- if image(what path is to image for on and for off)?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 286
	Threads: 64
	Joined: Sep 2015
	
Reputation: 
0
	 
	
	
		Hi!
The Display mode is: Icon
But this icon is an empty image for ON and OFF.
I have 'Hide Background' unchecked and I have one text over this button.
I want change this button background's color to red when object is ON and get back to grey when OFF.
Thanks!
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 286
	Threads: 64
	Joined: Sep 2015
	
Reputation: 
0
	 
	
		
		
		22.05.2017, 07:05 
(This post was last modified: 22.05.2017, 07:12 by jmir.)
		
	 
	
		Thanks! 
It works perfect with one Object but i Have 50 objects and All of them are turning RED if only one is in Alarm!
How can I do it ? Need to create one class per object or is there another solution?
Lot of Thanks!
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 8405
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481
	 
	
	
		Have you considered just using a custom icon for this?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 286
	Threads: 64
	Joined: Sep 2015
	
Reputation: 
0
	 
	
	
		I have considered but I didn't want to do that.
Now it's OK thanks!!