Navigation and dashboard¶
Sidebar menu¶
Every registered resource gets a sidebar entry that links to its index. A menu
declaration overrides the label and Bootstrap icon, assigns a group, sets a
priority, or hides the resource:
1 2 3 4 5 6 7 | |
Resources that share a group render under a collapsible section. Items within a
group are ordered by priority (lower first), then by label. The current
resource is highlighted, and the group containing it is expanded.
Resource icons¶
An icon declaration sets a resource's Bootstrap icon. The name is a
Bootstrap Icons identifier without the bi-
prefix. The icon appears in the sidebar entry and in the heading of the
resource's index, show, new, and edit pages:
1 2 3 | |
A resource without an icon uses list-ul in the sidebar and no icon in its
headings. An icon passed to menu overrides the sidebar icon while the page
headings keep the resource's icon.
Group order, custom internal links, and external links are configured on the admin:
1 2 3 4 | |
Internal link urls are prefixed with the mount path. External links open in a new
tab. Groups listed in menu-group-order come first, in that order; the rest
follow alphabetically.
Dashboard¶
The mount root renders a dashboard. Its default block lists every registered
resource as a card showing the record count and a link to the index. Custom
panels are added with dashboard-block, whose block returns the panel's HTML:
1 2 3 | |