Box
A layout that applies display: flex to the contentElement of
its container to layout child items. This defaults to a horizontal layout of items, also known as an 'hbox'.
layout : {
type : 'box' // or equivalently, 'hbox'
}
Configs
10
Configs
10Sets the align-items style of the owner's contentElement.
Sets the align-content style of the owner's contentElement.
The amount of gap between the element of child items.
Set this value to false to set the flex-direction
style of the owner's contentElement
to column. Or alternatively, set vertical to true.
Sets the justify-content style of the owner's contentElement.
Set this value to true to add '-reverse' to the flex-direction
style of the owner's contentElement.
This config combines with horizontal or vertical to set the flex-direction
style.
Set this value to true to set the flex-direction
style of the owner's contentElement
to column. Or alternatively, set horizontal to false.
Sets the flex-wrap style of the owner's contentElement.
The value of true is equivalent to 'wrap', false is equivalent to 'nowrap', and 'reverse' is
equivalent to 'wrap-reverse'.
layout : {
type : 'box',
wrap : false // equivalent to 'nowrap'
wrap : true // equivalent to 'wrap'
wrap : 'reverse' // equivalent to 'wrap-reverse'
}