Class Index | File Index

Classes


Class Exanpe.ListSorter

Represents a ListSorter component. Can be accessed through JavaScript by its id.
Defined in: exanpe-t5-lib.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Exanpe.ListSorter(id, urlSave)
Constructor
Method Summary
Method Attributes Method Name and Description
 
Called after triggering an ajax save Does nothing by default, override to define your own behavior.
 
Called before triggering an ajax save Does nothing by default except returing true, override to define your own behavior.
 
Stringify an array, not using .toJSON object function
 
Get the current list order This order is returned as an array, with at position 0 the index of the element
 
Return the component's list root
 
Return the component's parent form
 
save()
Save the order on server side, using an Ajax request
Class Detail
Exanpe.ListSorter(id, urlSave)
Constructor
Parameters:
{String} id
the id of the component
{String} urlSave
the url used to save the new order
Method Detail
afterSave()
Called after triggering an ajax save Does nothing by default, override to define your own behavior.

{boolean} beforeSave()
Called before triggering an ajax save Does nothing by default except returing true, override to define your own behavior.
Returns:
{boolean} false to cancel validation

{String} defaultStringify(o)
Stringify an array, not using .toJSON object function
Parameters:
{Object} o
the object to stringify
Returns:
{String} the element stringified, without quotes

{Array} getListOrder()
Get the current list order This order is returned as an array, with at position 0 the index of the element
Returns:
{Array} the array of order

{HTMLElement} getListRoot()
Return the component's list root
Returns:
{HTMLElement} the parent form

{HTMLElement} getParentForm()
Return the component's parent form
Returns:
{HTMLElement} the parent form

save()
Save the order on server side, using an Ajax request

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