StackLayout
Component
Represents the Kendo UI for Vue StackLayout component. Use the StackLayout to arrange its inner elements in a horizontal or vertical stack. You can nest StackLayout components to build more complex layouts.
Definition
Package:@progress/kendo-vue-layout
Properties Interface:StackLayoutProps
Syntax:
vue
<StackLayout :orientation="'vertical'" :gap="16" :align="{ horizontal: 'center', vertical: 'top' }">
<div>Pending orders</div>
<div>Shipped orders</div>
<div>Delivered orders</div>
</StackLayout>
Properties
Sets the horizontal and vertical alignment of the inner StackLayout elements. Demo (here) and (here).
The supported keys are:
horizontal—Sets the horizontal alignment of the inner StackLayout elements.start—Uses the start point of the container.center—Uses the central point of the container.end—Uses the end point of the container.- (Default)
stretch—Stretches the items to fill the width of the container.
vertical—Sets the vertical alignment of the inner StackLayout elements.top—Uses the top point of the container.middle—Uses the middle point of the container.bottom—Uses the bottom point of the container.- (Default)
stretch—Stretches the items to fill the height of the container.
gap?
string | number
Sets the gap between the inner elements (see example).
A number value sets the gap in pixels. A string value accepts any CSS length, such as '1rem'.
id?
string
Sets the id attribute of the root StackLayout element.
orientation?
string
Sets the orientation of the StackLayout (see example).
The supported values are:
horizontalvertical
Default:
horizontal