@serenity-is/corelib / panelPageInit
Function: panelPageInit()
Call Signature
panelPageInit<
TGrid,P>(panel):TGrid
Defined in: src/compat/layout.ts:90
Initializes a Serenity panel page. It resolves the hash route on load only when the panel has a route handler, e.g. an entity grid.
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.
Call Signature
panelPageInit<
TGrid,P>(type,props?):TGrid
Defined in: src/compat/layout.ts:97
Initializes a Serenity panel page. It resolves the hash route on load only when the panel has a route handler, e.g. an entity grid.
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.