| description | The Column is used to set the vertical positions or flow of the child components. |
|---|
The Column component is used to display the components in a column. Other components placed inside this component appears vertically.
- Drag and drop the Column component to a page container.
- Set the required attributes.
- Optionally, drag and drop any other components inside the Column component.
- Save and run the page.
- Drag and drop a Column component.
- Set the component attributes value of
layout directionto start andperpendicular directionto stretch. - Drag and drop a List Item component inside the Row component.
- Save and run the page.
- When the page is loaded, the list item appears vertically. The values set in step 2 specifies the direction in which the flex starts.
-
style: Accepts a string value that affects different properties of the Column such as height, width, and color, based on the values provided. For example:background:orange:height:200px. -
class: Used to point to a class in a style sheet. Each class contains one or more style statements defined in the Style editor. TheClassfield accepts space separated class names such asclass1 class2, where each class is defined in the Style editor as shown below:.class1 { border-radius:10px; flex-basis:10%; height:100px; } .class2 { border-radius:10px; flex-basis:10%; height:100px; }
-
fxFlex: This property should be used on elements within afxLayoutcontainer and identifies the resizing of that element within theflexboxcontainer flow such asflex-grow_,_flex basis,flex-shrink, and**flex-grow**. -
fxLayoutGap: This property specifies margin gaps on components within aflexboxcontainer. It accepts integer value. For example: 20px, and 5em. -
wrap: This property specifies whether the flexible items should wrap or not. -
Layout Direction: This property specifies how you can horizontally align the sub-components. It provides a drop-down list with the following options:- center
- start
- end
- space-around
- space-between
-
Perpendicular Direction: This property specifies how you can vertically align sub-components in the page. It provides a drop-down list with the following options:- None
- Center
- Start
- End
- Stretch
-
fxShow: This directive allows you to dynamically show the element. ChooseTrueto dynamically show the element. Else, chooseFalse. -
fxHide: This directive allows you to dynamically hide the element. ChooseTrueto dynamically hide the element. Else, chooseFalse.
Support
- Devices: Android, iOS
- Browsers: Latest version of all modern browsers
- Dependencies version:
- Angular CLI version: 6.0.0 +
- Cordova version: 7.1.0 +