Skip to content

@serenity-is/corelib / GridPageInit

Function: GridPageInit()

GridPageInit<TGrid, P>(type): HTMLElement

Defined in: src/compat/layout.ts:46

Initializes a full-height grid page from a widget class and props object. Compat shim for the legacy GridPageInit global; wraps initWidgetPage with #GridDiv as the default container.

Type Parameters

TGrid

TGrid extends Widget<P>

P

P

Parameters

type

The widget class to instantiate.

props?

WidgetProps<P>

type

{(options?): TGrid; prototype: TGrid; }

type.prototype

TGrid

Returns

HTMLElement

The root HTMLElement (domNode) of the initialized grid widget.

Deprecated

Prefer calling initWidgetPage / gridPageInit directly or using the modern Fluent / widget APIs. Kept for backward compatibility with pre-corelib page scripts.