Bài 21: Gird : Tìm hiểu ion-col,ion-row

Bài 21: Gird : Tìm hiểu ion-col,ion-row

  

 ion-col

Các cột là các thành phần di động của lưới(gird) hệ thống và đi vào bên trong một hàng(row). Chúng sẽ mở rộng để lấp đầy hàng của chúng. Tất cả nội dung trong một lưới phải nằm bên trong một cột.

Column Alignment(căn chỉnh cột)

Theo mặc định, các cột sẽ kéo dài để lấp đầy toàn bộ chiều cao của hàng. Các cột là các mục linh hoạt (flex items), vì vậy có một số lớp CSS (CSS classes)  có thể được áp dụng cho một cột để tùy chỉnh hành vi này.

Properties

offset

Description

The amount to offset the column, in terms of how many columns it should shift to the end of the total available.

Attributeoffset
Typestring | undefined

offsetLg

Description

The amount to offset the column for lg screens, in terms of how many columns it should shift to the end of the total available.

Attributeoffset-lg
Typestring | undefined

offsetMd

Description

The amount to offset the column for md screens, in terms of how many columns it should shift to the end of the total available.

Attributeoffset-md
Typestring | undefined

offsetSm

Description

The amount to offset the column for sm screens, in terms of how many columns it should shift to the end of the total available.

Attributeoffset-sm
Typestring | undefined

offsetXl

Description

The amount to offset the column for xl screens, in terms of how many columns it should shift to the end of the total available.

Attributeoffset-xl
Typestring | undefined

offsetXs

Description

The amount to offset the column for xs screens, in terms of how many columns it should shift to the end of the total available.

Attributeoffset-xs
Typestring | undefined

pull

Description

The amount to pull the column, in terms of how many columns it should shift to the start of the total available.

Attributepull
Typestring | undefined

pullLg

Description

The amount to pull the column for lg screens, in terms of how many columns it should shift to the start of the total available.

Attributepull-lg
Typestring | undefined

pullMd

Description

The amount to pull the column for md screens, in terms of how many columns it should shift to the start of the total available.

Attributepull-md
Typestring | undefined

pullSm

Description

The amount to pull the column for sm screens, in terms of how many columns it should shift to the start of the total available.

Attributepull-sm
Typestring | undefined

pullXl

Description

The amount to pull the column for xl screens, in terms of how many columns it should shift to the start of the total available.

Attributepull-xl
Typestring | undefined

pullXs

Description

The amount to pull the column for xs screens, in terms of how many columns it should shift to the start of the total available.

Attributepull-xs
Typestring | undefined

push

Description

The amount to push the column, in terms of how many columns it should shift to the end of the total available.

Attributepush
Typestring | undefined

pushLg

Description

The amount to push the column for lg screens, in terms of how many columns it should shift to the end of the total available.

Attributepush-lg
Typestring | undefined

pushMd

Description

The amount to push the column for md screens, in terms of how many columns it should shift to the end of the total available.

Attributepush-md
Typestring | undefined

pushSm

Description

The amount to push the column for sm screens, in terms of how many columns it should shift to the end of the total available.

Attributepush-sm
Typestring | undefined

pushXl

Description

The amount to push the column for xl screens, in terms of how many columns it should shift to the end of the total available.

Attributepush-xl
Typestring | undefined

pushXs

Description

The amount to push the column for xs screens, in terms of how many columns it should shift to the end of the total available.

Attributepush-xs
Typestring | undefined

size

Description

The size of the column, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.

Attributesize
Typestring | undefined

sizeLg

Description

The size of the column for lg screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.

Attributesize-lg
Typestring | undefined

sizeMd

Description

The size of the column for md screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.

Attributesize-md
Typestring | undefined

sizeSm

Description

The size of the column for sm screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.

Attributesize-sm
Typestring | undefined

sizeXl

Description

The size of the column for xl screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.

Attributesize-xl
Typestring | undefined

sizeXs

Description

The size of the column for xs screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.

Attributesize-xs
Typestring | undefined

CSS Custom Properties



NameDescription
--ion-grid-column-paddingPadding for the Column
--ion-grid-column-padding-lgPadding for the Column on lg screens and up
--ion-grid-column-padding-mdPadding for the Column on md screens and up
--ion-grid-column-padding-smPadding for the Column on sm screens and up
--ion-grid-column-padding-xlPadding for the Column on xl screens and up
--ion-grid-column-padding-xsPadding for the Column on xs screens and up
--ion-grid-columnsThe number of total Columns in the Grid

Ion-row

Hàng là thành phần nằm ngang của lưới(gird) hệ thống và chứa các số lượng cột(column) khác nhau . Chúng đảm bảo các cột được đặt đúng vị trí.

Row Alignment(căn chỉnh hàng)

Theo mặc định, các cột sẽ kéo dài để lấp đầy toàn bộ chiều cao của hàng và quấn khi cần thiết. Hàng là vùng chứa linh hoạt(flex container) , vì vậy có một số lớp CSS (CSS classes) thể được áp dụng cho một hàng để tùy chỉnh hành vi này.

Đăng nhận xét

0 Nhận xét

myadcash