Layout继承自View,可以用来包含其它的View或是Layout。
下面例子使用Layout来显示一个View
1 |
< div id = "app" ></ div > |
2 |
3 |
< script > |
4 |
var view = new kendo.View("< span >Foo</ span >"); |
5 |
6 |
var layout = new kendo.Layout("< header >Header</ header >< section id = 'content' ></ section >< footer ></ footer >"); |
7 |
8 |
layout.render($("#app")); |
9 |