This repository was archived by the owner on Jan 6, 2025. It is now read-only.
  
  
  - 
                Notifications
    You must be signed in to change notification settings 
- Fork 761
fxLayout API
        CaerusKaru edited this page Jan 5, 2018 
        ·
        12 revisions
      
    The fxLayout directive should be used on DOM containers whose children should layout or flow as the text direction along the main-axis or the cross-axis.
<div fxLayout="row">
  <div>1. One</div> <div>2. Two</div> <div>3. Three</div> <div>4. Four</div>
</div>or
<div fxLayout="column">
  <div>1. One</div> <div>2. Two</div> <div>3. Three</div> <div>4. Four</div>
</div>
Shown below are the supported fxLayout directive values and their resulting CSS stylings on the hosting element container:
| Value | Equivalent CSS | 
|---|---|
| (default) | {flex-direction: row} | 
| row | {flex-direction: row} | 
| row-reverse | {flex-direction: row-reverse} | 
| column | {flex-direction: column} | 
| column-reverse | {flex-direction: column-reverse} | 
Changes to the fxLayout value will cause the following directives to update and modify their element stylings:
- fxLayoutGap
- fxFlex
- fxLayoutAlign
- 
Quick Links 
- 
Documentation 
- 
Demos 
- 
StackBlitz Templates 
- 
Learning FlexBox 
- 
History 
- 
Developer Guides 
- 
Contributing