
Set sidebar brand display mode for expanded and collapsed states
Source:R/sidebar_mode.R
use_dash_sidebar_brand_mode.RdControls icon visibility, text visibility, and text content in both collapsed and expanded sidebar states.
Usage
use_dash_sidebar_brand_mode(
icon = NULL,
collapsed = c("icon-only", "icon-text", "text-only"),
expanded = c("icon-text", "icon-only", "text-only"),
collapsed_text = NULL,
expanded_text = NULL,
collapsed_text_size = NULL,
expanded_text_size = NULL,
collapsed_text_weight = NULL,
expanded_text_weight = NULL,
debug = FALSE
)Arguments
- icon
Font Awesome icon name used in the brand, e.g. "shield-halved", or a simple
icon("shield-halved")tag. Required when any mode includes "icon".- collapsed
Display mode when sidebar is collapsed: "icon-only", "icon-text", or "text-only"
- expanded
Display mode when sidebar is expanded: "icon-text", "icon-only", or "text-only"
- collapsed_text
Short label for collapsed "icon-text" or "text-only" mode. Keep <= 8 chars. NULL falls back to the current brand label already present in the DOM. When using
dash_titles(), the higher-level helper usually resolves this tobrand_textfor visible text modes.- expanded_text
Label for expanded "icon-text" or "text-only" mode. Keep <= 30 chars. NULL falls back to the current brand label already present in the DOM. When using
dash_titles(), the higher-level helper usually resolves this tobrand_textfor visible text modes.- collapsed_text_size
Optional CSS font-size applied to the sidebar brand label while collapsed.
- expanded_text_size
Optional CSS font-size applied to the sidebar brand label while expanded.
- collapsed_text_weight
Optional CSS font-weight applied to the sidebar brand label while collapsed.
- expanded_text_weight
Optional CSS font-weight applied to the sidebar brand label while expanded.
- debug
Logical. If
TRUE, prints helpful messages to the browser console for diagnosing missing icons or brand label elements.