
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
workarea-filter_dropdowns
Advanced tools
Filter Dropdowns plugin for the Workarea Commerce platform.
This gem packages up the workarea-accordions gem and includes a JS config preset to utilize jQuery UI's accordion functionality to the browse filters into dropdown menus. Other elements may be converted into dropdowns by applying the same accordion preset data attribute value, but they will have to match the relavent markup from the browse filters. Or the config will need to be customized. See https://jqueryui.com/accordion/ for jQuery UI Accordion documentation.
Simply add a data attribute to .result-filters
element like this:
.result-filters{ data: { accordion: { presetConfig: 'filtersAccordionOptions' }.to_json } }
Along with the filtersAccordionOptions
preset configuration, there is a filtersAccordionOptionsActive
config that will default the dropdown to open. This version of the gem also includes a helper method, contains_selected_filter?
to help you conditionally apply the appropriate preset configuration based on the presence of any selected filters.
.result-filters{ data: { accordion: { presetConfig: contains_selected_filter?(name) ? 'filtersAccordionOptionsActive' : 'filtersAccordionOptions' }.to_json } }
See https://developer.workarea.com for Workarea platform documentation.
Workarea Commerce Platform is released under the Business Software License
FAQs
Unknown package
We found that workarea-filter_dropdowns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.