Hello everybody,
Is there a way to change the color of an icon into a button ?
I use
$w (“#Button1”). style . backgroundColor= “#000000”;
to change the background color of the button,
I use
$w (“#Button1”). style . color= “#000000”; to change te color of the text of the button, but I do not find the API to change the icon color ?
Is it possible ?
Thanks a lot.
Seb
Step 1) - $w ( “#postalButton” ). icon console this replace element id
Step2) - Get Original Icon URL from Console
Step 3) Upload same icon with different color into wix media and set new icon then console it Get New Icon media URL
Step 2) - Then You can use icon like this - $w ( “#postalButton” ). icon = “wix:vector://v1/cd69cc6678764dbca8ec434ba22ffd92.svg” ;
In my case $w ( “#postalButton” ). icon = “wix:vector://v1/17b9d8_ffa7293f4aee43ddaf82897500a8fa07.svg” ; this is initial icon its a black tick icon
After click I am setting $w ( “#postalButton” ). icon = “wix:vector://v1/cd69cc6678764dbca8ec434ba22ffd92.svg” ; its a green tick icon
@balwindersingh829
Hello,
Thank you very much for your help and solution, works perfectly 
It was really nice of you to take the time.
I really appreciate it. Many thanks again.
Sebastien
You are welcome Sebastien