Class Index | File Index

Classes


Class Exanpe.Accordion

Represents an Accordion. Can be accessed through JavaScript by its id.
Defined in: exanpe-t5-lib.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Exanpe.Accordion(id, multiple, eventType, duration)
Constructor
Field Summary
Field Attributes Field Name and Description
 
Marker defining if an animation is on
 
Current item opened
 
Duration for animation
 
Shows on item on over instead of click
 
id
id of the accordion
 
Multiple item visible feature
Method Summary
Method Attributes Method Name and Description
 
close(id)
Hides an item
 
Determines if an item is opened
 
open(id)
Open an item in this accordion
Class Detail
Exanpe.Accordion(id, multiple, eventType, duration)
Constructor
Parameters:
{String} id
the id of the main accordion element
{boolean} multiple
if multiple items can be opened at once
{String} eventType
the type of event that trigger the accordion
{float} duration
the speed of accordion animation
Field Detail
animating
Marker defining if an animation is on

currentItem
Current item opened

duration
Duration for animation

eventType
Shows on item on over instead of click

id
id of the accordion

multiple
Multiple item visible feature
Method Detail
{boolean} close(id)
Hides an item
Parameters:
{string} id
the id of the item to hide
Returns:
{boolean} true if close occurred, false otherwise

{boolean} isOpened(id)
Determines if an item is opened
Parameters:
{string} id
the id of the item
Returns:
{boolean} true if the item is opened, false otherwise

{boolean} open(id)
Open an item in this accordion
accordionId.open("item1")
Parameters:
{string} id
the id of the item of the accordion to open
Returns:
{boolean} true if open occurred, false otherwise

Documentation generated by JsDoc Toolkit 2.0.0 on Mon Jan 09 2012 21:35:38 GMT+0100 (CET)