Giter Club home page Giter Club logo

adapt-contrib-accordion's Introduction

#adapt-contrib-accordion

An Adapt core contributed accordion component that displays clickable titles, which reveal display text.

##Installation

First, be sure to install the Adapt Command Line Interface, then from the command line run:-

    adapt install adapt-contrib-accordion

This component can also be installed by adding the component to the adapt.json file before running adapt install:

    "adapt-contrib-accordion": "*"

##Usage

Once installed, the component can be used to create an accordion comprised of collapsible content panels containing display text. Clickable title items are used to toggle the visibility of these content panels.

##Settings overview

For example JSON format, see example.json

A description of the core settings can be found at: Core model attributes. The following explains further settings for the accordion component:

####_component

This value must be: accordion

####_classes

You can use this setting to add custom classes to your template and LESS file.

####_layout

This defines the position of the component in the block. Values can be full, left or right.

####_items

Each item represents one element of the accordion. Text values can be entered for alt, title and body for each element.

####alt

The alt setting provides alternative information for the image.

####title

Enter a title value for this accordion element. This text is displayed at all times.

####body

The text entered for the body will be shown when the reader opens this accordion element.

##Limitations

To be completed.

##Browser spec

This component has been tested to the standard Adapt browser specification.

adapt-contrib-accordion's People

Contributors

brian-learningpool avatar dancgray avatar darylhedley avatar taylortom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.