PureAdmin.Components.SettingsPanel (PureAdmin v1.1.0)

Copy Markdown View Source

Settings panel component for Pure Admin.

Provides runtime-configurable settings for theme, color variant, mode, layout width, sidebar behavior, display options, and font preferences. Theme/variant/mode selectors are populated dynamically from /api/themes/manifests. All settings persist to localStorage via the PureAdminSettings JS hook.

Examples

<.settings_panel />

<.settings_panel default_theme="audi" />

Summary

Functions

Renders the floating settings panel.

Functions

settings_panel(assigns)

Renders the floating settings panel.

Theme, color variant, and mode selectors are populated dynamically by the JS hook from /api/themes/manifests. All other controls use data-setting attributes bound to localStorage.

Attributes

  • id (:string) - Defaults to "settingsPanel".
  • default_theme (:string) - Defaults to nil.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.