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

tabStrip.append() not wrapping new tab same as others

0 Answers 67 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 26 Jul 2012, 01:48 AM
I'm adding a new tab dynamically to my kendoTabStrip. This is working fine, but the new tab does not get wrapped in an <a> tag like the tabs which are created from the <li>'s, rather it is wrapped in a <span>. Here is my code:

<div id="tab-strip">
  <ul>
    <li class="k-state-active" id="tab1">Tab 1</li>
    <li id="tab2">Tab 2</li>
  </ul>   
  <div>
    Content 1
  </div>
  <div>
    Content 2
  </div>
</div>
 
 
 
$('#tab-strip').data('kendoTabStrip').append([{
    text: "New Tab",
    content: "my content"
}]);

Is this the expected behavior? Is there a way to specify the wrapper for the tab text?

No answers yet. Maybe you can help?

Tags
TabStrip
Asked by
Charles
Top achievements
Rank 1
Share this question
or