The tile manager component enables the dynamic arrangement, resizing, and interaction of tiles.
- Slots
-
default— Default slot for the tile manager. Only tile elements are projected inside the CSS grid container.
- CSS Parts
-
base— The tile manager CSS Grid container. -
maximized-tile— Indicates that a tile is maximized. Applies to `base`.
Properties
Section titled "Properties"columnCount
Section titled "columnCount"The number of columns, truncated to a whole number. A value of 0 or less gives a responsive layout.
columnCount: number dragMode
Section titled "dragMode"The drag mode of the tiles. none turns drag and drop off.
dragMode: TileManagerDragMode locale
Section titled "locale"The locale of the tiles. A tile without its own locale takes this one.
Without it, the manager takes its own lang, else the locale of the
nearest ancestor that has a locale (a component) or a lang, and then
the global locale.
locale: string minColumnWidth
Section titled "minColumnWidth"The minimum width of a column.
minColumnWidth: string | undefined minRowHeight
Section titled "minRowHeight"The minimum height of a row.
minRowHeight: string | undefined resizeMode
Section titled "resizeMode"The resize mode of the tiles. none turns resizing off.
resizeMode: TileManagerResizeMode Accessors
Section titled "Accessors"tiles
Section titled "tiles"The tiles, sorted by their position in the layout.
get tiles(): IgrTileComponent[]
Returns IgrTileComponent[]
Methods
Section titled "Methods"loadLayout
Section titled "loadLayout"Applies a layout from saveLayout to the tiles with the same id. Invalid JSON throws.
loadLayout(data: string): void Parameters
- data:
string
Returns void
saveLayout
Section titled "saveLayout"Returns the tile properties as a JSON string. The content of the tiles is not saved.
saveLayout(): string Returns string
Events
Section titled "Events"onTileDragCancel
Section titled "onTileDragCancel"onTileDragCancel(args: CustomEvent<IgrTileComponent>): void Parameters
- args:
CustomEvent<IgrTileComponent>
Returns void
onTileDragEnd
Section titled "onTileDragEnd"onTileDragEnd(args: CustomEvent<IgrTileComponent>): void Parameters
- args:
CustomEvent<IgrTileComponent>
Returns void
onTileDragStart
Section titled "onTileDragStart"onTileDragStart(args: CustomEvent<IgrTileComponent>): void Parameters
- args:
CustomEvent<IgrTileComponent>
Returns void
onTileFullscreen
Section titled "onTileFullscreen"onTileFullscreen(args: CustomEvent<IgrTileChangeStateEventArgs>): void Parameters
Returns void
onTileMaximize
Section titled "onTileMaximize"onTileMaximize(args: CustomEvent<IgrTileChangeStateEventArgs>): void Parameters
Returns void
onTileResizeCancel
Section titled "onTileResizeCancel"onTileResizeCancel(args: CustomEvent<IgrTileComponent>): void Parameters
- args:
CustomEvent<IgrTileComponent>
Returns void
onTileResizeEnd
Section titled "onTileResizeEnd"onTileResizeEnd(args: CustomEvent<IgrTileComponent>): void Parameters
- args:
CustomEvent<IgrTileComponent>
Returns void
onTileResizeStart
Section titled "onTileResizeStart"onTileResizeStart(args: CustomEvent<IgrTileComponent>): void Parameters
- args:
CustomEvent<IgrTileComponent>