TileLayoutProps
Represents the properties of [TileLayout](% slug overview_tilelayout %) component.
Name | Type | Default | Description |
---|---|---|---|
autoFlow? |
|
Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the TileLayout.
For further reference, check grid-auto-flow CSS article.
Defaults to | |
columns? |
|
Specifies the default number of columns (see example). | |
columnWidth? |
|
Specifies the default width of the columns (see example). | |
dataItemKey? |
|
Represents the | |
dir? |
|
Represents the | |
gap? |
|
Specifies the gaps between the tiles (see example).
| |
id? |
|
Sets the | |
items? |
|
The collection of items that will be rendered in the TileLayout (see example). | |
positions? |
|
The list of tiles' positions which are used when the TileLayout is in controlled mode (see example). | |
rowHeight? |
|
Specifies the default height of the rows (see example). |
Methods
ignoreDrag | ||||||
---|---|---|---|---|---|---|
Use this callback to prevent or allow dragging of the tiles based on specific dom event.
Setting | ||||||
| ||||||
|
onReposition | ||||||
---|---|---|---|---|---|---|
Fires when the user repositions the tile by either dragging or resizing (see example). | ||||||
|