Long custom labels

2 posts, 0 answers
  1. Bob
    Bob avatar
    1 posts
    Member since:
    Sep 2013

    Posted 03 Oct 2014 Link to this post

    Is it possible to have onLabel and offLabel that is longer than three characters?  I'm using the mobile switch on a web page with the silver theme and it appears that if I make the labels more than three characters it bleeds over into the other label.  Try it out yourself click on the "Edit this sample" button here http://demos.telerik.com/kendo-ui/switch/adaptive and change the onLabel or offLabel to "XXXXXXXX" or something long and you will see what I'm talking about.  What I'm trying to accomplish is to get rid of the corresponding labels that you would put next to the control and just show that toggled text in the control itself.  For example I want a switch with the onLabel="Edit Mode" and offLabel="View Mode".
  2. Kiril Nikolov
    Kiril Nikolov avatar
    2543 posts

    Posted 07 Oct 2014 Link to this post

    Hi Bob,

    This can be achieve with some custom CSS rules, that will make the switch wider, so longer text is shown. I have created an example that shows the implementation, please check it out and let me know if it helps:


    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top