Change color of drawer button depending on drawer-state

4 posts, 0 answers
  1. magdil
    magdil avatar
    6 posts
    Member since:
    Jul 2011

    Posted 26 May 2014 Link to this post

    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
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 28 May 2014 Link to this post

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. magdil
    magdil avatar
    6 posts
    Member since:
    Jul 2011

    Posted 12 Jun 2014 in reply to Kiril Nikolov Link to this post

    Thank you, Kiril.
    This is exactly what I was looking for. Got it working!
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 12 Jun 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready