Wijmo UI for the Web
addItem Method
Indicates the listItem to add.
Index of the added item.
The addItem method adds the specified item to the list by index.
Syntax
Javascript (Usage) 
$(function () {
    var returnsValue; // Type:  any
    // Parameters
    var item; // Type:  object
    var index; // Type:  number
    
    returnsValue = $(".selector").wijlist("addItem", item, index);
});
Javascript (Specification) 
function addItem( 
   item : object,
   index : number
) : any;

Parameters

item
Indicates the listItem to add.
index
Index of the added item.
Remarks
If the index is undefined, then the item becomes the last list item.
Browser Compatibility
7
5
5

See Also

Reference

wijlist type
wijlist jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.