Logic Machine Forum
Css change icon - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Css change icon (/showthread.php?tid=4300)



Css change icon - Chris - 16.10.2022

Bonjour,
je souhaite changer image dans mon visuel :

value = event.getvalue()
grp.write('32/1/37', value)

if value==1 then
 
--> Change icon CSS = icon1
 
elseif value==2 then
 
--> Change icon CSS = icon2
 
elseif value==3 then
 
--> Change icon CSS = icon3
 
elseif value==4 then
 
--> Change icon CSS = icon4
 
end 

quelqu'un peut m'aider s'il vous plait, merci

Sorry !
Hello,
I want to change image in my visual:
value = event.getvalue()
grp.write('32/1/37', value)

if value==1 then

--> Change icon CSS = icon1

elseif value==2 then

--> Change icon CSS = icon2

elseif value==3 then

--> Change icon CSS = icon3

elseif value==4 then

--> Change icon CSS = icon4

end
can someone please help me, thank you


RE: Css change icon - admin - 17.10.2022

There's a built-in "Additional icons" feature that you can use for this: https://forum.logicmachine.net/showthread.php?tid=2226&pid=13926#pid13926


RE: Css change icon - Chris - 17.10.2022

Hello,

Perfect ! Tank you