Prepares the NavBar for safe removal from DOM. Detaches all event handlers and removes attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.

Important: This method does not remove the NavBar element from DOM.


<div id="foo" data-role="view" data-title="navbar demo">
  <header data-role="header">
    <div data-role="navbar">
      <a class="nav-button" data-align="left" data-icon="action" data-role="button"></a>
      <span data-role="view-title"></span>
      <a class="nav-button" data-align="right" data-icon="refresh" data-role="button"></a>
  <a data-role="button" data-click="onClick">Button</a>

var app = new;
function onClick(e) {
  var navbar = app.view()

In this article