Assistant class for managing the JavaScript objects array.
EMAPI. | Assistant class for managing the JavaScript objects array. |
Functions | |
EMAPI. | A constructor of a new instance of EMAPI.ArrayObjects class. |
destroy | Destroys an object of EMAPI.ArrayObjects class. |
addItem | Adds a new item at the end of the array. |
insertItem | Inserts a new item to the array. |
setItem | Changes the value of the item in the array. |
removeItem | Deletes the item from the array. |
removeItems | Removes all items from the array |
moveItem | Changes position of element in array. |
item | Returns object located in the given position of array. |
count | Return number of object located in array. |
Destroys an object of EMAPI.ArrayObjects class.
destroy: function()
Adds a new item at the end of the array.
addItem: function ( options )
Inserts a new item to the array.
insertItem: function( options, index )
Changes the value of the item in the array.
setItem: function( options, index )
Deletes the item from the array.
removeItem: function( index )
Removes all items from the array
removeItems: function ( destroy )
Changes position of element in array.
moveItem: function ( from, to )
Returns object located in the given position of array.
item: function( i )
Return number of object located in array.
count : function()