Sha256: 79685ba8a86fb99b0f3b92134730f465afe502c2a51a71845c002149c5e47f12
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 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 shows 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: 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scrivito_accordion_widget-1.1.2 | README.md |