Hello, kendo-Team. I don't know if i missed something, but how do i add new tab and some content in it?
Demo page explains how to create a tab only...without any content.....
Is there a way to add some content at this way ?
Of course, it is solvable with jquery:
...but it would be very nice if there were a "content" property wich could be passed to the append-method
something like...
Demo page explains how to create a tab only...without any content.....
1.
tabStrip.append({
2.
text:
"new Tab"
3.
});
Is there a way to add some content at this way ?
Of course, it is solvable with jquery:
01.
...
02.
tabStrip.append({
03.
text:
"new Tab"
04.
});
05.
var
$tabContent = $(
"<p>"
,
06.
{
07.
html: $(
"<div>"
,
08.
{
09.
text:
"Lorem Ipsum"
10.
})
11.
});
12.
$(
'.t-content:last'
).html($tabContent);
something like...
1.
tabStrip.append({
2.
text:
"new Tab"
,
3.
content :
"Lorem Ipsum"
4.
// or <span>some HTML as string</span>
5.
// or $jqueryElement created via $()
6.
// or "some-link.to/a-remote-page.html"
7.
});