AreaGridLayout class
A layout that divides a container into named areas into which elements can be placed.
Constructors
| Area |
Properties
| areas | The areas in the grid layout. |
| columns | The columns in the grid layout, defined as a percentage of the available width or in pixels using the |
| column |
The space between columns. |
| row |
The space between rows. |
| target |
Controls for which card width the layout should be used. |
| type | Must be Layout.AreaGrid. |
Methods
| from(Omit<IArea |
|
| with |
|
| with |
|
| with |
|
| with |
|
| with |
Constructor Details
AreaGridLayout(AreaGridLayoutOptions)
Property Details
areas
columns
The columns in the grid layout, defined as a percentage of the available width or in pixels using the <number>px format.
columns?: (string | number)[]
Property Value
(string | number)[]
columnSpacing
rowSpacing
targetWidth
Controls for which card width the layout should be used.
targetWidth?: TargetWidth
Property Value
type
Must be Layout.AreaGrid.
type: "Layout.AreaGrid" = "Layout.AreaGrid"
Property Value
"Layout.AreaGrid"
Method Details
from(Omit<IAreaGridLayout, "type">)
static function from(options: Omit<IAreaGridLayout, "type">): AreaGridLayout
Parameters
- options
-
Omit<IAreaGridLayout, "type">
Returns
withAreas(IGridArea[])
function withAreas(areas: IGridArea[]): AreaGridLayout
Parameters
- areas
Returns
withColumns((string | number)[])
function withColumns(columns: (string | number)[]): AreaGridLayout
Parameters
- columns
-
(string | number)[]
Returns
withColumnSpacing(Spacing)
function withColumnSpacing(columnSpacing: Spacing): AreaGridLayout
Parameters
- columnSpacing
- Spacing
Returns
withRowSpacing(Spacing)
withTargetWidth(TargetWidth)
function withTargetWidth(targetWidth: TargetWidth): AreaGridLayout
Parameters
- targetWidth
- TargetWidth