Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / makeAdminLayout

Function: makeAdminLayout()

makeAdminLayout(panel): typeof AdminLayout

Defined in: admin/src/ui/AdminLayout.tsx:339

The shell class for one panel, cached so every page of that panel shares it.

The router keys shell persistence on the layout class name, so each panel needs a class of its own: without that, navigating from one panel to another would swap the content while leaving the previous panel's sidebar in place.

Parameters

panel

PanelInstance

Returns

typeof AdminLayout