Skip to content
Sheetwrite

@sheetwrite/core/adapter

gridSkeletonStylefunction

Report a problem

On this page

The skeleton's geometry as CSS custom properties, for the element with the sheetwrite-skeleton class: the toolbar or ribbon and the sheet tabs when config shows them, then the headers, rows and columns of the active sheet at the theme's sizes. Framework adapters put it on their built-in skeleton; renderGridSkeleton uses it for a vanilla host.

Declaration

function gridSkeletonStyle(
width?: number,
): Record<string, string>

Parameters

options?: GridSkeletonOptionsoptional

The options the grid will be created with.

width?: numberoptional

The host's width in CSS pixels, which an automatic ribbon needs to choose its layout; omitted, the ribbon takes its full layout.

Returns

Record<string, string>

CSS custom properties, keyed by their names.