How to use layout inside container

Hello,

I have used scheduler inside container like

and the script is…

dhx.ready(function () {
dhx.ui({
view: “scheduler”,
id: “scheduler”,
container: “schedulerDiv”
});
});

but i want to use row layout also, like…

dhx.ui({
rows: [
{

                   view: "toolbar",
                   type: "MainBar",
                   elements: [
                                                      {view: "label", label: '......'}
                                  ]
               },
             {
                 container: "schedulerDiv",
                view: "scheduler",
                id: "scheduler"
            }
         ]
          
    });

so, how to use row layout and also container

Thankyou

Hello,

container is the property that defines html container where view should be initialized. If you want to put layout into container, you should set “container” in layout configuration, not in scheduler view:

dhx.ui({
container: “schedulerDiv”,
rows: [
{

view: “toolbar”,
type: “MainBar”,
elements: [
{view: “label”, label: ‘…’}
]
},
{

view: “scheduler”,
id: “scheduler”
}
]

});