-
Notifications
You must be signed in to change notification settings - Fork 161
Layout and Flex Specifications
Stanimir Dimitrov edited this page May 12, 2017
·
1 revision
igxLayout
directive should be used to arrange elements, organize screen content and add/improve the structure of overlay elements.
Use the igxLayout
directive on a container element to specify the layout direction for its children: horizontally with igxLayoutDir="row" or vertically with igxLayoutDir="column". The igxLayout directive affects the flow directions for that container's immediate children.
As a developer I want to be able to provide a way to adapt to any possible screen size easily and manage content reflows on different screens.
<span igxLayout >
...
</span>
The igxLayout
should provide a way to visualize different contents on a screen/page.
- Manage flow direction.
- Operate with flex children.
- Define different alignments.
- Mange how children are laid out.
-
igxLayoutDir
- Sets the default flow direction of the container's children. Defaults torows
. -
igxLayoutReverse
- Defines the direction flex children are placed in the flex container. When set totrue
, therows
direction goes right to left andcolumns
goes bottom to top. -
igxLayoutWrap
- By default the immediate children will all try to fit onto one line. The default valuenowrap
sets this behavior. Other accepted values arewrap
andwrap-reverse
. -
igxLayoutJustify
- Defines the alignment along the main axis. Defaults toflex-start
which packs the children toward the start line. Other possible values areflex-end
,center
,space-between
,space-around
. -
igxLayoutItemAlign
- Defines the default behavior for how children are laid out along the corss axis of the current line. Defaults toflex-start
. Other possible values areflex-end
,center
,baseline
, andstretch
.
It is used for elements inside an igxLayout
parent to control specific flexbox properties.
-
igxFlexOrder
- Controls in what order are the elements laid out in the flex container. Defaults to0
. -
igxFlexGrow
- Sets whether an item should grow in a propotion to its peers inside the flex container. Defaults to1
. -
igxFlexShrink
- Sets whether an items should shrink in a propotion to its peers. Defaults to1
and negative number are not accepted.