Learn R Programming

calcite (version 1.0.0)

page_sidebar: Create a Shell with Sidebar Panel Layout

Description

Similar 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.

Usage

page_sidebar(
  ...,
  sidebar = NULL,
  title = NULL,
  position = c("start", "end"),
  width = c("m", "s", "l"),
  display_mode = c("dock", "overlay", "float-content", "float-all"),
  footer = NULL
)

Value

An object of class calcite_component containing a configured shell

Arguments

...

Main content area (typically a calcite_panel() or map view)

sidebar

A calcite_panel() for the sidebar. Typically contains calcite_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".

footer

Optional footer content

Examples

Run this code
page_sidebar(
  title = "Data Explorer",
  sidebar = calcite_panel(
    heading = "Filters",
    calcite_block(
      heading = "Options",
      collapsible = TRUE,
      expanded = TRUE
    )
  ),
  calcite_panel(heading = "Results")
)

Run the code above in your browser using DataLab