Skip to content
Sheetwrite

@sheetwrite/core

renderGridSkeletonfunction

Report a problem

On this page

Shows the grid's loading skeleton in host before the grid exists, for a page that does not use a framework adapter (the adapters show it on their own). Call it first, then load the engine and create the grid with the same options: createGrid keeps the skeleton over its host until its first frame is painted, then fades it out and removes it. The host is aria-busy meanwhile.

Declaration

function renderGridSkeleton(
host: HTMLElement,
): () => void

Parameters

host: HTMLElementrequired

The element the grid will be created in; give it its size first.

options?: GridSkeletonOptionsoptional

The options the grid will be created with.

Returns

() => void

Removes the skeleton, for a page that does not create the grid after all.