Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/workarea-commerce/workarea-accordions
https://github.com/workarea-commerce/workarea-accordions
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/workarea-commerce/workarea-accordions
- Owner: workarea-commerce
- License: other
- Created: 2019-11-14T19:47:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T00:52:41.000Z (about 2 years ago)
- Last Synced: 2024-10-28T17:21:22.036Z (2 months ago)
- Language: Ruby
- Size: 799 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this 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/](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](https://developer.workarea.com) for Workarea platform documentation.
Copyright & Licensing
--------------------------------------------------------------------------------
Workarea Commerce Platform is released under the [Business Software License](https://github.com/workarea-commerce/workarea/blob/master/LICENSE)