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`.

The number of columns, truncated to a whole number. A value of 0 or less gives a responsive layout.

columnCount: number = 0

Defined in src/components/tile-manager/tile-manager.ts:155

The drag mode of the tiles. none turns drag and drop off.

dragMode: TileManagerDragMode = 'none'

Defined in src/components/tile-manager/tile-manager.ts:140

The gap between the tiles.

gap: string = undefined

Defined in src/components/tile-manager/tile-manager.ts:180

Optional minColumnWidth

Section titled "minColumnWidth"

The minimum width of a column.

minColumnWidth: string = undefined

Defined in src/components/tile-manager/tile-manager.ts:163

Optional minRowHeight

Section titled "minRowHeight"

The minimum height of a row.

minRowHeight: string = undefined

Defined in src/components/tile-manager/tile-manager.ts:171

The resize mode of the tiles. none turns resizing off.

resizeMode: TileManagerResizeMode = 'none'

Defined in src/components/tile-manager/tile-manager.ts:131

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[]

Defined in src/components/tile-manager/tile-manager.ts:60

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

The tiles, sorted by their position in the layout.

get tiles(): IgcTileComponent[]

Defined in src/components/tile-manager/tile-manager.ts:200

Returns IgcTileComponent[]

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

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

Returns string