How i cant anidate views

Hi, in dhtmlx i can attach components in distincts parts of a layout, like

layout.attachGrid(),
layout.attachComponent()

then i can construct hight level structures with less lines makes easy the manteinance the app, i tried this

webix.ui({ // this is a principal view
id:“app”,
container:“miApp”,
rows:[
{ view:“template”, type:“header”, template:“My App!” },
{id:“grid”} // here i tried add the view defined later
]
});
}

grid = webix.ui({
id:“grid”,
view : “datatable”,
data: [
{title:“My Fair Lady”, year:1964, votes:533848, rating:8.9, rank:5},
]
});

sorry but my english is really bad