The tile manager component enables the dynamic arrangement, resizing, and interaction of tiles.
- Element
-
igc-tile-manager
- 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 = 0 dragMode
Section titled "dragMode"The drag mode of the tiles. none turns drag and drop off.
dragMode: TileManagerDragMode = 'none' Optional minColumnWidth
Section titled "minColumnWidth"The minimum width of a column.
minColumnWidth: string = undefined Optional 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 = 'none' styles
Section titled "styles"Array of styles to apply to the element. The styles should be defined using the css tag function, via constructible stylesheets, or imported from native CSS module scripts.
Note on Content Security Policy:
Element styles are implemented with <style> tags when the browser doesn't
support adopted StyleSheets. To use such <style> tags with the style-src
CSP directive, the style-src value must either include 'unsafe-inline' or
nonce-<base64-value> with <base64-value> replaced be a server-generated
nonce.
To provide a nonce to use on generated <style> elements, set
window.litNonce to a server-generated nonce in your page's HTML, before
loading application code:
``
styles: CSSResult[] Accessors
Section titled "Accessors"locale
Section titled "locale"get locale(): any 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.
set locale(value: string): void Defined in src/components/tile-manager/tile-manager.ts:191
Parameters
- value:
string
Returns void
tiles
Section titled "tiles"The tiles, sorted by their position in the layout.
get tiles(): IgcTileComponent[] Defined in src/components/tile-manager/tile-manager.ts:200
Returns IgcTileComponent[]
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 Defined in src/components/tile-manager/tile-manager.ts:341
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 Defined in src/components/tile-manager/tile-manager.ts:336