Kendo ToolBar items attributes not working

5 posts, 0 answers
  1. wizmagister
    wizmagister avatar
    37 posts
    Member since:
    Nov 2011

    Posted 15 Oct 2014 Link to this post

    Hi,

    I was looking through the documentation to add alt/title text to the buttons inside a toolbar and saw the Attributes configurations.
    I went on the "Edit this example" page and saw that even the example wasn't working...

    Is there something extra that must be done for this to be working properly?

    Thanks

    http://docs.telerik.com/kendo-ui/api/javascript/ui/toolbar#configuration-items.attributes
  2. wizmagister
    wizmagister avatar
    37 posts
    Member since:
    Nov 2011

    Posted 16 Oct 2014 in reply to wizmagister Link to this post

    I've found out that if I switch to the most recent framework version in the drop down, the issue is fixed (2014 Q2 SP1 & SP2).

    When the example is opened, it is the Q2 no SP and the attributes isn't being applied.
  3. Kendo UI is VS 2017 Ready
  4. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 17 Oct 2014 Link to this post

    Hi Marc-Andre,

    I may confirm that - the attributes support was implemented after the Q2 official release. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Zachary
    Zachary avatar
    3 posts
    Member since:
    Apr 2014

    Posted 05 Feb Link to this post

    Is there an appropriate way to apply alt text to an image inside a button? Currently if I try to use the attributes.alt property, it will put the alt attribute on the parent div instead of the <img> element. Kendo generates alt text for the image of "icon" which isn't meaningful for our accessibility users.
  6. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 10 Feb Link to this post

    Hello Zachary,

    Currently this is not possible. One option is to include the image button via template item which will give you the ability to fully customize the HTML. Another option is to modify the alt attribute with jQuery after Toolbar initialization.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready