Create a Shell with Sidebar Panel Layout
page_sidebar.RdSimilar to bslib::page_sidebar(), this creates a layout with a sidebar
panel and main content area — the easiest way to build a standard Calcite
app layout. Pass a calcite_panel() as sidebar; it will be wrapped in a
calcite_shell_panel() automatically.
Arguments
- ...
Main content area (typically a
calcite_panel()or map view)A
calcite_panel()for the sidebar. Typically containscalcite_block()components with controls.- title
Optional application title shown in a navigation header.
- position
Position of sidebar:
"start"(left) or"end"(right).- width
Width of the sidebar:
"s","m", or"l".- display_mode
Display mode for the shell panel:
"dock","overlay","float-content", or"float-all". Default:"dock".Optional footer content
Examples
page_sidebar(
title = "Data Explorer",
sidebar = calcite_panel(
heading = "Filters",
calcite_block(
heading = "Options",
collapsible = TRUE,
expanded = TRUE
)
),
calcite_panel(heading = "Results")
)
#> <calcite-shell>
#> <calcite-panel heading="Results"></calcite-panel>
#> <calcite-navigation slot="header">
#> <calcite-navigation-logo slot="logo" heading="Data Explorer"></calcite-navigation-logo>
#> </calcite-navigation>
#> <calcite-shell-panel width="m" slot="panel-start">
#> <calcite-panel heading="Filters">
#> <calcite-block heading="Options" collapsible="TRUE" expanded="TRUE"></calcite-block>
#> </calcite-panel>
#> </calcite-shell-panel>
#> </calcite-shell>