Skip to main content

Module panel

Module panel 

Source
Expand description

Panel — an admin panel an app mounts into its router.

Modules§

url
URLs into the request’s panel, so app code never spells a prefix.

Structs§

Brand
Branding for the admin shell: the sidebar header, the login card, and the topbar below md, where the sidebar folds into a sheet.
Panel
An admin panel: resources and pages under one prefix, framed by one shell and gated by one Auth.

Traits§

RouterBuilderPanelExt
Mounts a Panel on a router the app owns.

Functions§

can_list
Whether the current request may open R’s list: the request’s panel mounts R, and sign-in, tenant scope, and Ability::ViewAny allow it.
navigation
R’s sidebar entry in the context’s panel, with its label, URL and icon; None when the panel does not register R.
wired_table
Returns the panel’s list table for R, with the request’s row actions wired on, for a page that owns its table; render it over the page’s own query with WiredTable::render.