Interface: TileLayoutHandle
Properties
element
ts
readonly element: HTMLDivElement;The layout element (with data-andamento), inside the element mounted into.
layout
ts
readonly layout: Layout;The layout being shown.
Methods
destroy()
ts
destroy(): void;Remove the layout (items are taken out of their tiles) and stop listening.
Returns
void
refresh()
ts
refresh(): void;Render again, e.g. after changing what renderCell returns.
Returns
void
tileElement()
ts
tileElement(cellId): HTMLElement | undefined;The element of the tile showing a cell, if it's in the DOM.
Parameters
| Parameter | Type |
|---|---|
cellId | string |
Returns
HTMLElement | undefined
update()
ts
update(changes): void;Change some options (others stay as they are; pass undefined to clear one) and re-render.
Parameters
| Parameter | Type |
|---|---|
changes | Partial<TileLayoutConfig> |
Returns
void