Collapsible Documentation

Class: Collapsible

Sets up a DOM element to toggle open and closed when another DOM element is clicked (kind of like a single item Accordion).

Tutorial/Demo

Extends

Syntax

new Collapsible(clicker, section[, options]);
 

Arguments

  1. clicker - (mixed) A dom Element or the string id of a dom Element that, when clicked, will toggle the display of the section.
  2. section - (mixed) A dom Element or the string id of a dom Element that is displayed or hidden when the clicker is clicked.
  3. options - (object, optional) The options object described below:

Options