Hi, I would like to close a widget not only clicking outside it, but also clicking on an icon object (i.e. X) like in the picture. How I can do?
Thanks
Peppe
	
Thanks
Peppe
| 
				
				 
					Botton to close a widjet
				 
			 | 
		
| 
	 
		Hi, I would like to close a widget not only clicking outside it, but also clicking on an icon object (i.e. X) like in the picture. How I can do? 
	
Thanks Peppe 
		
		
		12.01.2021, 12:45 
		
	 
	
		Use hide-widget class, add to custom JS: 
	
	
	
Code: $(function() {
		
		
		12.01.2021, 13:19 
		
	 
	
	
	
	
		
		
		03.03.2021, 13:58 
		
	 
	
		Hi, 
	
	
	
In my case I have a widget to control the heating mode => it pops up 4 additional buttons to select the appropriate mode. Now I have to the select the mode and then push next to the widget to close it. I would like to auto-close the widget as soon as one of those 4 buttons have been pushed, and thus a heating mode has been selected. What would be the custom css in this case? Thank you! Thijs 
		
		
		03.03.2021, 14:02 
		
	 
	
		Add hide-widget class to all buttons, add to custom JS: 
	
	
	
Code: $(function() {
		
		
		03.03.2021, 14:21 
		
	 
	
	
	
	
		
		
		08.06.2023, 14:53 
		
	 
	(12.01.2021, 12:45)admin Wrote: Use hide-widget class, add to custom JS: I have tried this solution. Now the widget close when i push the button but it didn't send any value to the direction group....what i am missing? 
		
		
		09.06.2023, 11:53 
		
	 
	
		Works for me - object value is sent and widget is closed. Which browser are you using?
	 
	
	
	
		
		
		13.06.2023, 13:09 
		
	 
	
	
	
	
		
		
		13.06.2023, 13:53 
		
	 
	
		I tried it too on SL and it works for me. Which firmware do you use?
	 
	
	
------------------------------ 
	
Ctrl+F5 
		
		
		13.06.2023, 14:04 
		
	 
	
	
	
	
		
		
		13.06.2023, 14:07 
		
	 
	
		There is no such thing like 2.7.0 for LM  
	
	
  I tried it on 2.8.0 on SL
	
------------------------------ 
	
Ctrl+F5 
		
		
		13.06.2023, 14:39 
		
	 
	
	
	
	
		
		
		21.06.2023, 11:28 
		
	 
	
	
	
	
 | 
| 
				
	 
					« Next Oldest | Next Newest »
				 
			 |