PhoenixKit.Modules.Shop.Web.Components.CatalogSidebar (phoenix_kit v1.7.71)
Copy Markdown View SourceReusable sidebar component for the shop storefront.
Renders collapsible filter sections and category tree navigation.
Uses native HTML <details>/<summary> for collapse behavior.
Summary
Functions
Renders the full catalog sidebar with filters and category tree.
Renders only the category navigation tree (no filters).
Renders a compact filter list for the dashboard sidebar.
Renders a single filter section.
Functions
Renders the full catalog sidebar with filters and category tree.
Attributes
filters- List of enabled filter definitionsfilter_values- Map of aggregated values per filter keyactive_filters- Map of currently active filter selectionscategories- List of active categories for navigationcurrent_category- Currently selected category (or nil)current_language- Current language codecategory_icon_mode- Icon mode settingcategory_name_wrap- Whether to wrap category namesshow_categories- Whether to show category tree (default: true)show_filters- Whether to show filter sections (default: true)
Attributes
filters(:list) (required)filter_values(:map) (required)active_filters(:map) (required)categories(:list) - Defaults to[].current_category(:any) - Defaults tonil.current_language(:string) - Defaults to"en".category_icon_mode(:string) - Defaults to"none".category_name_wrap(:boolean) - Defaults tofalse.show_categories(:boolean) - Defaults totrue.show_filters(:boolean) - Defaults totrue.filter_qs(:string) - Defaults to"".
Renders a compact filter list for the dashboard sidebar.
Simplified version without category tree, designed to fit below the dashboard tab navigation.
Attributes
filters(:list) (required)filter_values(:map) (required)active_filters(:map) (required)
Renders a single filter section.
Dispatches to the correct sub-component based on filter type.
Attributes
filter(:map) (required)values(:any) (required)active(:any) - Defaults tonil.
Attributes
mode(:string) (required)category(:any) (required)