No release in over 3 years
Low commit activity in last 3 years
Adds a JS module that inits jQuery UI accordions where specified
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.x
 Project Readme

Workarea Accordions

Accordions plugin for the Workarea Commerce platform.

Using Workarea Accordions

Apply a data-accordion attribute to any element that contains appropriate accordion markup (See https://jqueryui.com/accordion/ for jQuery UI Accordion documentation). If no value is passed to the data attribute, then the default jQuery UI Accordion options will be used to init the accordion.

New in version 2.0, the data attribute can only be passed an object for it's configuration.

The configuration object accepts the following properties:

Property Data Type Required? Default Notes
initIfLessThan string no null Only init the accordion if breakpoint is less than the value passed.
presetConfig string no n/a Name of a preset configuration object
uiAccordionOptions object no jQuery Accordion Defaults jQuery Accordion Options

Examples

.element{ data: { accordion: '' } }

.element{ data: { accordion: { presetConfig: 'alternativeAccordionOptions' }.to_json } }

.element{ data: { accordion: { initIfLessThan: 'medium', uiAccordionOptions: { animate: false } }.to_json } }

Workarea Platform Documentation

See https://developer.workarea.com for Workarea platform documentation.

Copyright & Licensing

Workarea Commerce Platform is released under the Business Software License