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

Kendo ToolBar items attributes not working

4 Answers 224 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
wizmagister
Top achievements
Rank 2
wizmagister asked on 15 Oct 2014, 08:40 PM
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

4 Answers, 1 is accepted

Sort by
0
wizmagister
Top achievements
Rank 2
answered on 16 Oct 2014, 05:36 PM
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.
0
Petyo
Telerik team
answered on 17 Oct 2014, 08:48 AM
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!
 
0
Zachary
Top achievements
Rank 1
answered on 05 Feb 2016, 09:30 PM
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.
0
Alexander Valchev
Telerik team
answered on 10 Feb 2016, 01:18 PM
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!
 
Tags
Toolbar
Asked by
wizmagister
Top achievements
Rank 2
Answers by
wizmagister
Top achievements
Rank 2
Petyo
Telerik team
Zachary
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or