on 10-18-2018 12:39 PM
Hey all!
I have a tile container with some tiles. Upon selecting a particular tile, I want to hightlight/change the color of the selected tile. How can I do this using controller?
Hi,
I assume you are using "Generic Tile" (If not, I'm sure you will can adapt it to your tile type)
1- Attach the event "Press" of the tile to a method of the controller.
2- In this method get the tile (oEvent.getSource())
3- Attach a CSS class to it in order to highlight it (For example with the property: "background-color: red")
4- Write your case logic to remove the highlight whenever you want to quit it
It's just a way, for sure there will be anothers. I hope it suits for you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.