wrap Boolean (default: true)

If set to false, the view will not wrap its contents in a root element. In that case, the view element will point to the root element in the template. If false, the view template should have a single root element.


<div id="app"></div>

var view = new kendo.View('<div id="foo"></div>', { wrap: false });
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(view.element.attr('id')) // foo
In this article