mmichaels01 / umbraco-bootstrap-accordion-editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Umbraco Bootstrap Accordion

Easily create bootstrap accordions in the Umbraco Grid Editor


Installation

Install to your project via Nuget

Nuget Project

Install

Umbraco Package

Usage

Add the Bootstrap Accordion editor to the Grid Data Type of your choice by selecting a row configuration, and allowing all editors or adding the "Bootstrap Accordion" editor for the desired row.

Image

Add the bootstrap accordion editor to a row in the grid editor:

Panel

Ensure Bootstrap CSS/JS is loaded onto the page that is rendering the accordion.

Setting accordion groups

Set the accordion parent value as a CSS selector for a common ancestor of the collapsible panels you wish to be grouped as an accordion. This works by setting the data-parent attribute on the collapsible panel. Please ensure the parent target has the panel grouping class applied.

Example element structure: Example


Building from source

This project was built using the umbraco yeoman generator.

Please view this project if you wish to modify the source of this project: Github

About

License:MIT License


Languages

Language:JavaScript 62.6%Language:HTML 27.9%Language:C# 6.1%Language:CSS 3.4%