TileLayoutProps
Represents the props of the TileLayout component.
Definition
Package:@progress/kendo-react-layout
Properties
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.
column
(see example).
className?
string
Sets additional classes to the TileLayout.
columns?
number
Specifies the default number of columns (see example).
columnWidth?
string | number
Specifies the default width of the columns (see example).
dataItemKey?
string
Represents the key field of the TileLayout item. Used for setting unique keys to the TileLayout items.
dir?
string
Represents the dir HTML attribute. Use this to switch from LTR to RTL.
Specifies the gaps between the tiles (see example).
- The possible keys are:
rowscolumns
id?
string
Sets the id property of the root element.
Use this callback to prevent or allow dragging of the tiles based on specific DOM events.
Setting ignoreDrag={(e) => { return !(e.target.classList.contains("k-card-title")); }} makes only the headers draggable.
Setting ignoreDrag={(e) => { return e.target.nodeName == "INPUT"; }} ignores dragging input elements.
boolean
The collection of items that will be rendered in the TileLayout (see example).
onReposition?
(event: TileLayoutRepositionEvent) => void
Fires when the user repositions the tile by either dragging or resizing (see example).
The list of tiles' positions which are used when the TileLayout is in controlled mode (see example).
rowHeight?
string | number
Specifies the default height of the rows (see example).
style?
CSSProperties
Sets additional CSS styles to the TileLayout.