일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- es5 #es6
- 일기
- SSL인증서
- guide
- 웹기획
- PublicKey
- CSS #flex
- anaconda
- nodejs
- 요구사항정의서 #기획 #UI/UX기획
- Ke
- 안좋은습관10가지
- Javascript #MDN #Webs #Docs
- behaviorsubject
- Storyboard
- keytool
- 해시함수
- Git
- TensorFlow
- tsotry
- securitykey
- 가상사설망
- angular
- CSS #pseudo-classes
- passport.js
- typescript
- javascript #prototype # array # find()
- webpack
- privateKey
- Vue
- Today
- Total
민자의 지식창고
Angular Flex-Layout 본문
https://tburleson-layouts-demos.firebaseapp.com/#/docs
Angular Flex-Layout Demos
tburleson-layouts-demos.firebaseapp.com
static 화면의 레이아웃 설정 하는 법은 위의 본문에 표시가 됩니다
기본적으로 형식은 아래와 같습니다.
layout을 동적으로 표현이 가능합니다.
<div fxLayout="row" fxLayoutAlign="center center">
<!-- Layout Direction : row
Alignment in Layout direction(horizontal) : center
Alignment in Layout direction(vertical) : center
--!>
Layout Direction : row, column
Alignment in Layout direction (horizontal) : none, start, center, end, space-around, space-between, space-evently
Alignment in Layout direction (vertical): none, start, center, end, space-around, space-between, space-evently
layout의 기본 포맷을 설정이 가능 합니다
Flex to Fill Row
<div faxLayout = "row">
<!-- simple row using "flex" on 3rd element to fill available main axis --!>
Flex with Align-self
<div fxFlexAlgin="baseLine">
<!-- option
start
center
baseline
end
auto
stretch
--!>
Responsive Layout Directions
Layout direction changes to 'column' for 'xs' or 'sm' viewport size
- lg= screen and min-width 1280px , max-width 1919.99px
- lt-xl = screen and max-width 1919.99px
- gt-md = screen and min-width 1280px
- gt-sm = screen and min-width 960px
- gt-xs = screen and min-width 600px
Multiple Responsive Columns
simple row with nested layout containers.
<div fxLayout ="row" fxFlex="50% fxFlex.gt-sm="25% fxHide.md></div>
<div fxLayout="row" fxFlex></div>
Responsive Flex Dirctives
use the show hid APIs to responseively show or hide elements:
Active MediaQuery(s)
- md = screen and min-width 960 px and max 1279.99px
- lt-lg = screen and max-width 1279.99px
- lt-xl - screen and max-width 1919.99px
- gt-sm = screen and min-width 960px
- gt-xs = screen and min-with 600px
Responsive Flex Ordering
Add the flex-order directive to a layout child to set its order position within the layout containner
<div flex-order ="-1">
<div flex-order ="1">
<div flex-order ="2">
<!-- 해상도 변경시 아래와 같이 순서가 변경이 가능 합니다!-->
<div flex-order.gt-md ="-1">
<div flex-order.gt-md ="2">
<div flex-order.gt-md ="1">
'개발노트 > Angular' 카테고리의 다른 글
Angular Coding style Guide (0) | 2020.08.25 |
---|---|
Element (0) | 2020.08.25 |
Routing & Binding (0) | 2020.07.29 |
AngularJS 기초학습2 (0) | 2018.05.11 |
Angularjs 기초 학습 1 (0) | 2018.05.10 |