DashboardToolbar
A secondary bar under a navbar, for filters and bulk actions.
On this page
Examples
Filters and a count
Orders
24 orders
A secondary bar under the navbar.
Razor
<div class="h-64 w-full overflow-hidden rounded-xl border border-(--klyroo-border)">
<KlyDashboardGroup>
<KlyDashboardPanel>
<Header>
<KlyDashboardNavbar Title="Orders" Toggle="false" />
<KlyDashboardToolbar data-testid="dashboard-toolbar">
<Left>
<KlyButton Label="Filter" Size="KlySize.Sm" Variant="ButtonVariant.Outline" Color="KlyColor.Neutral" LeadingIcon="@(KlyIcons.Named("list", "size-4"))" />
<KlyButton Label="Export" Size="KlySize.Sm" Variant="ButtonVariant.Ghost" Color="KlyColor.Neutral" />
</Left>
<Right>
<span class="text-sm text-(--klyroo-text-muted)">24 orders</span>
</Right>
</KlyDashboardToolbar>
</Header>
<Body><p class="text-sm text-(--klyroo-text-muted)">A secondary bar under the navbar.</p></Body>
</KlyDashboardPanel>
</KlyDashboardGroup>
</div>API
KlyDashboardToolbar
Secondary bar under a navbar, with filters and bulk actions on the left and view options on the right.
Parameters
| Name | Type | Description |
|---|---|---|
Class |
string |
Classes added to the root element, merged last so they win over the theme. |
Ui |
Dashboard |
Per-instance class overrides of the slots of the dashboard toolbar, see DashboardToolbarUi . They are merged after the theme and the Class parameter wins on the root slot. |
Slots
| Name | Type | Description |
|---|---|---|
Left |
RenderFragment |
Filters and bulk actions, at the start of the toolbar. |
Right |
RenderFragment |
View options, at the end of the toolbar. |
ChildContent |
RenderFragment |
The center area, between the left and the right ones. |
Ui slots
Ui takes a Dashboard with one class string per slot, merged after the theme.
| Slot | Styles |
|---|---|
Root |
Classes merged into the root slot of KlyDashboardToolbar , after the theme and the app configuration. |
Left |
Classes merged into the left slot of KlyDashboardToolbar , after the theme and the app configuration. |
Center |
Classes merged into the center slot of KlyDashboardToolbar , after the theme and the app configuration. |
Right |
Classes merged into the right slot of KlyDashboardToolbar , after the theme and the app configuration. |