@serenity-is/corelib / gridPageInit
Function: gridPageInit()
Call Signature
gridPageInit<
TGrid,P>(grid):TGrid
Defined in: src/compat/layout.ts:68
Initializes a Serenity grid page that fills the available viewport height.
Compat shim for the legacy gridPageInit / Serenity.gridPageInit API. Accepts either an existing widget instance or a widget class + props.
Type Parameters
TGrid
TGrid extends Widget<P>
P
P
Parameters
grid
TGrid & object
An existing grid widget instance (must expose domNode).
Returns
TGrid
The same grid widget after full-height layout initialization.
Call Signature
gridPageInit<
TGrid,P>(type,props?):TGrid
Defined in: src/compat/layout.ts:75
Initializes a Serenity grid page that fills the available viewport height.
Type Parameters
TGrid
TGrid extends Widget<P>
P
P
Parameters
type
{(options?): TGrid; prototype: TGrid; }
Grid widget class to instantiate.
prototype
TGrid
props?
WidgetProps<P>
Optional widget properties (supports element as selector or callback).
Returns
TGrid
The newly created and initialized grid widget.