Class attribute on splitButton

2 posts, 0 answers
  1. Jack
    Jack avatar
    106 posts
    Member since:
    Jan 2007

    Posted 08 Dec 2014 Link to this post

    IMHO, the k-primary class should also have been applied to the down arrow part of the splitButton.
  2. Dimo
    Dimo avatar
    8485 posts

    Posted 10 Dec 2014 Link to this post

    Hello Jack,

    Your request makes sense in this case, but there are scenarios in which the desired behavior will cause side effects, for example if you set a width style via the button's attributes, it will be applied to the arrow element as well, which is not needed.

    I recommend you to add the k-primary class to the arrow element with Javascript after the Toolbar is initialized:

    $(".k-split-button > .k-primary + .k-split-button-arrow").addClass("k-primary");

    On the other hand, CSS styles that need to be targeted at the whole split button (i.e. the split button's wrapper), can be applied via the buttons ID, e.g. #user-toolbar-view.

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