
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.
Arguments
- icon
Font Awesome icon name used in the brand, e.g. "shield-halved". 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 original DOM text (CSS truncates).
- expanded_text
Label for expanded "icon-text" or "text-only" mode. Keep <= 30 chars. NULL falls back to original DOM text.
- debug
Logical. If
TRUE, prints helpful messages to the browser console for diagnosing missing icons or brand label elements.