ch.Accordion (Class)

Documentation updated on Mon Mar 12 2012 17:48:09 GMT-0300 (GMT-03:00), generated by JsDoc Toolkit 2.4.0

Overview

Accordion is a UI-Component.

Summary

Visibility Name Description
<public>  
The element reference.
<public>  
The component's type.
<public>  
uid
The component's instance unique identifier.

Fields borrowed from class ch.Controllers: children,that

Fields borrowed from class ch.Uiobject: DOMParent,originalContent,position,staticContent

Visibility Name Description
<public>  
Select a specific children.

Methods borrowed from class ch.Uiobject: content, prevent

Methods borrowed from class ch.Object: callbacks, off, on, once, trigger

Visibility Name Description
<public>  
Triggers when the component is ready to use (Since 0.8.0).

Classdetail

Parameters

  • conf: Object, Optional. Object with configuration properties.
  • conf.selected: Number, Optional. Selects a child that will be open when component was loaded.
  • conf.fx: Boolean, Optional. Enable or disable UI effects. By default, the effects are disable.

Returns

  • itself

Requires

Examples

// Create a new menu with configuration.
var me = $(".example").accordion({
    "selected": 2,
    "fx": true
});
// Create a new menu without configuration.
var me = $(".example").accordion();

Properties detail

element (public, HTMLElement)

The element reference.

type (public, string)

The component's type.

uid (public, number)

The component's instance unique identifier.

Methods detail

select (public)

Select a specific children.

Events detail

ready (public)

Triggers when the component is ready to use (Since 0.8.0).

Examples
// Following the first example, using 'me' as accordion's instance controller:
me.on("ready",function () {
	this.select();
});