Sha256: 0c4fc4f7f2fec13036c29f86233ad4907f0bb32a2142a5f7a8b7334c8d21ca4e
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
# ScrivitoAccordionWidget A Scrivito widget for adding an accordion. ## Prerequists This widget requires Bootstrap. ## Installation Add this line to your application's Gemfile: gem 'scrivito_accordion_widget' ## Localization The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary: ```yaml en: scrivito_accordion_widget: thumbnail: title: Accordion description: Displays collapsible content panels details: expand: Expand first panel background_color: Background color title: Title ``` ## Customization This widget includes an attribute for the background color of every panel. The value of this attribute is used as a CSS class. If you want to use this feature, add a CSS rule for your selectable colors: ```css .bg-red { background-color: red; } ``` You can also use the [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors #color_picker) color picker to have a better visualization of the selectable color classes.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scrivito_accordion_widget-1.2.1 | README.md |
scrivito_accordion_widget-1.2.0 | README.md |