title

Update the title element text. The title element is specified by setting the role data attribute to view-title.

Parameters

value String

The text of title

Example

<div id="foo" data-role="view" data-title="navbar demo">
  <header data-role="header">
    <div data-role="navbar">
      <span data-role="view-title"></span>
    </div>
  </header>
  <a data-role="button" data-click="onClick">Change title</a>
</div>

<script>
var app = new kendo.mobile.Application();
function onClick(e) {
  var navbar = app.view()
    .header
    .find(".km-navbar")
    .data("kendoMobileNavBar");

  navbar.title("changed");
}
</script>
In this article
Not finding the help you need?