Docking Layout

layout:{
    type: 'docking' // or tabs
}

Demo

SAMPLE
CODE

The docking layout extends the Tab layout.

All the configuration properties are the same, so the description here will be short.

The only difference between the ludo.layout.Docking layout and the ludo.layout.Tab is that you can choose not to show any child views.

When no child views are visible, the size of the docking view will collapse to the size of the tab strip.

Collapse Docking View

The view can be collapsed by clicking on the tab for the visible child view.

It can also be hidden during runtime with code:

ludo.$('idOfChild').hide();

Initially displayed child view

By default, the docking layout will be shown in collapsed state. To initially display a child view, set layout.visible to true for that particular child view.

children:[
    {
        title:'Tab title',
        layout:{ visible:true }
    }
]
Generated 2017-01-03 19:10:30