Search found 1 match

by MonkeyDesk
Thu May 03, 2018 4:38 am
Forum: Components
Topic: Can the tile color be changed dynamically
Replies: 1
Views: 784

Can the tile color be changed dynamically

Hello Forum. I've been having a lot of fun with metroui and was wondering if there is a way to dynamically change the color of a tile in js. Something like this: if (myObj.onoff == "ON") { document.getElementById("tile1").style ="background-color: #4a00b3"; } else if (myObj.onoff == "OFF") { documen...