Skip to content

@serenity-is/corelib / panelPageInit

Function: panelPageInit()

Call Signature

panelPageInit<TGrid, P>(panel): TGrid

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

Initializes a Serenity panel page without hash-router integration. Compat shim for the legacy panelPageInit / Serenity.panelPageInit API. Accepts either an existing panel instance or a widget class + props.

Type Parameters

TGrid

TGrid extends Widget<P>

P

P

Parameters

panel

TGrid & object

An existing panel widget instance (must expose domNode).

Returns

TGrid

The same panel widget after layout initialization (noRoute: true).

Call Signature

panelPageInit<TGrid, P>(type, props?): TGrid

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

Initializes a Serenity panel page without hash-router integration.

Type Parameters

TGrid

TGrid extends Widget<P>

P

P

Parameters

type

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

Panel widget class to instantiate.

prototype

TGrid

props?

WidgetProps<P>

Optional widget properties.

Returns

TGrid

The newly created and initialized panel widget.