27.08.2024, 10:47 
		
	
	
		I have been asked to make some elements of the visualization "read-only" if a specified KNX object is off. Is there a way I can do this?
	
	
	
	
| 
				
				 
					Change attribute in visu following a knx object
				 
			 | 
		
| 
	 
		
		
		27.08.2024, 10:47 
		
	 
	
		I have been asked to make some elements of the visualization "read-only" if a specified KNX object is off. Is there a way I can do this?
	 
	
	
	
		
		
		27.08.2024, 10:51 
		
	 
	
	
	
	
		
		
		27.08.2024, 11:08 
		
	 
	
		Okay, I saw the example. I am trying to make it work, but I need to know if it is possible to use more than one "additional class" per object since I already have a generic class handling the animations of all the buttons, and I need this to happen to just a bunch of those.
	 
	
	
	
		
		
		27.08.2024, 11:09 
		
	 
	
		You can set any number of additional classes, separated by space.
	 
	
	
	
		
		
		27.08.2024, 11:31 
		
	 
	
		Does not seem to be working, I probably got something wrong  
	
	
	
I pasted this in in my javascript custom: Code: $(function() {pasted this in Custom CSS: Code: .el-disabled {and I used dis_da_totale as an additional class for the button is that correct, or am I missing something? 
		
		
		27.08.2024, 11:59 
		
	 
	
		Your example works fine for me. Use browser dev tools (F12) to check if the element has a specific class.
	 
	
	
	
		
		
		27.08.2024, 14:10 
		
	 
	
		Maybe then I did not understand what i supposed to do. Like I expected the button to stop working as long as the value of "32/1/22" is false. Is this correct?
	 
	
	
	
		
		
		27.08.2024, 14:11 
		
	 
	(27.08.2024, 11:59)admin Wrote: Your example works fine for me. Use browser dev tools (F12) to check if the element has a specific class. I think he did not also add the class el-disabled to the additonal classes so the CSS does not apply to the element because of the class dis_da_totale is used, so intthis case the additional class needs to hold both dis_da_totale el-disabled or am i wrong? 
		
		
		27.08.2024, 14:14 
(This post was last modified: 27.08.2024, 14:17 by Andrea Becagli.)
		
	 
	(27.08.2024, 14:11)Erwin van der Zwart Wrote:(27.08.2024, 11:59)admin Wrote: Your example works fine for me. Use browser dev tools (F12) to check if the element has a specific class. I just tried that but it makes the element disabled no matter what the value is. I forgot to say that I checked with dev tools and the element seems to have the "dis_da_totale" class 
		
		
		27.08.2024, 14:24 
		
	 
	
		Post a screenshot of the relevant visualization element settings.
	 
	
	
	
		
		
		27.08.2024, 14:36 
		
	 
	(27.08.2024, 14:24)admin Wrote: Post a screenshot of the relevant visualization element settings. I have attached two screenshots: the settings and the actual visu. "uso TOTALE OFF" is the object which should lock the buttons below 
		
		
		28.08.2024, 13:58 
		
	 
	
		Send your backup via PM. Use WeTransfer or another similar service.
	 
	
	
	
		
		
		28.08.2024, 18:00 
		
	 
	(28.08.2024, 13:58)admin Wrote: Send your backup via PM. Use WeTransfer or another similar service. Here you go: https://we.tl/... 
		
		
		29.08.2024, 15:49 
		
	 
	
		It's not working because the previous function in Custom JavaScript fails with an error. Change it to this and it will work: 
	
	
	
Code: $(function(){
		
		
		29.08.2024, 16:15 
		
	 
	(29.08.2024, 15:49)admin Wrote: It's not working because the previous function in Custom JavaScript fails with an error. Change it to this and it will work: Thanks, admin. Problem solved as always  
	 | 
| 
				
	 
					« Next Oldest | Next Newest »
				 
			 |