Simple question : when i add a tab by javascript, is it possible to put HTML instead of simple text for the tab's title ?
I want to ad a close button in fact.
Regards,
Guillaume
3 Answers, 1 is accepted
0
Kamen Bundev
Telerik team
answered on 24 Jan 2012, 09:08 AM
Hi Guillaume,
Yes, you can, but you need to specify encoded: false as an option. Something like this: tabStrip.append({
text: "<b>Item 1</b>",
encoded: false
});
Regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Kamen Bundevexcellent,but nowwhen I sendthetabtoremovetheimagethat aggregateswill not let mewithout firstselectthetab.it is possible toknow whichindextheclosebuttonthatI clicked?
0
Kamen Bundev
Telerik team
answered on 20 Feb 2012, 12:44 PM
Hello Leonel,
If you attach a handler to the close button onclick event, you can use the event to get the event target and from there find the closest item (a LI element in the Kendo TabStrip). Then you can use the item to pass it to the TabStrip remove() method.
Kind regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!