Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0  
	
	
		Hello 
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 8413
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481  
	
	
		See this if you want to rotate an icon based on linked object value:
https://forum.logicmachine.net/showthread.php?tid=1831 
	
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0  
	
	
		Hello Admin
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 8413
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481  
	
	
		Custom name cannot be accessed from Custom JS at the moment. This can be done via Additional classes. This code will look for all elements where class list contains 
rotate-XYZ  (where XYZ is an angle value in degrees). No custom CSS is needed for this solution, the rotation is applied by the code itself..
Code:
$(function(){
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0  
	
		
		
		11.04.2022, 07:47 
(This post was last modified: 11.04.2022, 07:48 by khalil .) 
  
		
	 
	
		 (11.04.2022, 05:34) admin Wrote:  rotate-XYZ  (where XYZ is an angle value in degrees). No custom CSS is needed for this solution, the rotation is applied by the code itself..Code:
$(function(){
Thanks Admin
Great
Could we use custom name in the tooltip or not yet?
	
 
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 8413
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481  
	
	
		Custom name will be accessible from JavaScript side in the next firmware.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0  
	
	
		 (11.04.2022, 09:23) admin Wrote:  
Great news
	
 
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0  
	
	
		 (11.04.2022, 09:23) admin Wrote:  
Hello admin.
Could we use custom name in tooltip, if you could share an example.
	
 
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 5284
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237  
	
	
	
	
------------------------------
	
		
	
 
 
	
	
	
		
	Posts: 8413
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481  
	
	
		Use the example above but change the content property to this:
Code:
content: attr(data-object-name);
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0  
	
	
		 (21.02.2023, 12:22) admin Wrote:  Code:
content: attr(data-object-name);
Hello Dears, 
It didn't work, does it work with CSS and no need to use JS?
I am mean object properity: Custom name.
	
 
	
Attached Files Thumbnail(s)  
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 8413
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481  
	
	
		If custom name is empty then object name will be used. This works for me:
Code:
.usermode [data-object-name]:before {
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0  
	
	
		What should I use in the additional classes ( tooltip tooltip-1  ) its not used in this CSS code.
	
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 5284
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237  
	
	
		No need for any additional class for this example. It works only on visualisatin not editor.
	
	
	
------------------------------
	
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0  
	
	
		 (21.02.2023, 15:28) Daniel Wrote:  
I tried on SL and Wiser for KNX, but it didnt work.
does it work there?
	
 
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 5284
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237  
	
	
		In did this is not implemented in SE firmware yet, wait for next fw.
Or add this to custom JS
Code:
$(function(){
------------------------------
	
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0  
	
	
		 (22.02.2023, 08:42) Daniel Wrote:  Code:
$(function(){
Thanks Daniel,
	
 
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 141
	Threads: 19
	Joined: Apr 2018
	
Reputation: 
0  
	
		
		
		19.03.2024, 12:23 
(This post was last modified: 19.03.2024, 12:25 by manos@dynamitec .) 
  
		
	 
	
		 (09.04.2022, 08:15) khalil Wrote:  
Hello admin,
Can we just implement this function for 0-360° and assign name in additional classes? 
something like a for i=0 to 360 do......
Code:
.rotate-i {
If then we add additional classes: rotate-1 or 2 or 3 the icon rotates to the correct angle.
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 8413
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481