Methods
deleteItem($item)
#
Deletes an item from the list
getColId($item) → {number}
#
Retrieves ID number of column
Parameters:
Name | Type | Description |
---|---|---|
$item |
jQuery |
- Source:
Returns:
- Type
- number
Retrieves ID number of column
getCurrentJson(pageId, callback)
#
Retrieves JSON form of the list content
Parameters:
Name | Type | Description |
---|---|---|
pageId |
number | |
callback |
Object |
Retrieves JSON form of the list content
getListOfItems($elm) → {Array}
#
Helper function to get ordered list of all items in list
renumberElements(colId)
#
Renumbers the item IDs within a column following a re-ordering or a deletion
Parameters:
Name | Type | Description |
---|---|---|
colId |
number | the column in which to re-number the items |
- Source:
Renumbers the item IDs within a column following a re-ordering or a deletion
reorderList($item, newOrder, originalOrder)
#
If the order of the list changes, save back to page
saveJson(params, callback)
#
Saves the JSON text to a CollaborationListContent page
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | |
callback |
Object |
Saves the JSON text to a CollaborationListContent page