This is a migrated thread and some comments may be shown as answers.

Change color of drawer button depending on drawer-state

3 Answers 80 Views
Drawer (Mobile)
This is a migrated thread and some comments may be shown as answers.
magdil
Top achievements
Rank 1
magdil asked on 26 May 2014, 11:36 AM
Hello,

I need some help, please.

I have a mobile drawer, but I want to change the way the button looks depending on if the drawer is showing or not.
Any ideas on how to do this? I am not sure which style property to use for this.

Thanks

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 28 May 2014, 11:03 AM
Hello Magdil,

The drawer has show and hide events that you can use to change the icon color according to your preference. I have created an example that you can as as a reference:

http://jsbin.com/linix/1/edit

Regards,
Kiril Nikolov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
magdil
Top achievements
Rank 1
answered on 12 Jun 2014, 12:07 PM
Thank you, Kiril.
This is exactly what I was looking for. Got it working!
0
Kiril Nikolov
Telerik team
answered on 12 Jun 2014, 12:59 PM
Hello Magdil,

Glad I helped.

In case you have any further questions, please do not hesitate.

Regards,
Kiril Nikolov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Drawer (Mobile)
Asked by
magdil
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
magdil
Top achievements
Rank 1
Share this question
or