Class: Www::RadiantPanelFiltersComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Www::RadiantPanelFiltersComponent
- Defined in:
- app/components/www/radiant_panel_filters_component.rb
Overview
Www::RadiantPanelFiltersComponent
Client-side filter bar for the radiant panel product grid.
Filtering is handled entirely in the browser via a Stimulus controller
that shows/hides product cards and collection groups.
Constant Summary collapse
- FINISH_OPTIONS =
[ ['All Finishes', ''], ['White (Flat)', 'FLX-WHT'], ['White (Glass)', 'GLS-WHT'], ['Black (Glass)', 'GLS-BLK'], ['Mirror', 'GLS-MIR'] ].freeze
- COLLECTION_OPTIONS =
[ ['All Collections', ''], ['Ember Flex', 'FLX'], ['Ember Glass', 'GLS'], ['Ember Mirror', 'MIR'] ].freeze
- ROOM_SIZE_OPTIONS =
[ ['All Room Sizes', ''], ['300W — Small Bathroom / Powder Room', '300'], ['500W — Bedroom / Home Office', '500'], ['600W — Living Room / Large Bedroom', '600'], ['700W — Open Kitchen / Studio', '700'], ['800W — Large Room / Open Space', '800'] ].freeze
- SORT_OPTIONS =
[ ['Collection', ''], ['Price: Low to High', 'price-asc'], ['Price: High to Low', 'price-desc'], ['Name A-Z', 'name-asc'] ].freeze
Method Summary
Methods inherited from ApplicationComponent
#cms_link, #fetch_or_fallback, #image_asset_tag, #image_tag, #number_to_currency, #number_with_delimiter, #post_path, #post_url, #strip_tags