switchTo

Set the mobile TabStrip active tab to the tab with the specified URL. This method doesn't change the current View. To change the View, use Application's navigate method instead.

Parameters

url String|Number

The URL or zero based index of the tab.

Example

<div id="foo" data-role="view">
  <a data-role="button" data-click="onClick">Button</a>
  <div data-role="footer">
    <div data-role="tabstrip">
      <a href="#foo" data-icon="contacts">foo</a>
      <a href="#bar" data-icon="contacts">bar</a>
    </div>
  </div>
</div>

<script>
var app = new kendo.mobile.Application();
function onClick() {
  var tabstrip = app.view().footer.find(".km-tabstrip").data("kendoMobileTabStrip");
  tabstrip.switchTo("#bar"); //activate "bar" tab
}
</script>
In this article
Not finding the help you need?