Expand all

ext.CollaborationKit.list.edit

Constructor

new ext.CollaborationKit.list.edit($, mw) #

Parameters:

Name Type Description
$ jQuery
mw mw
Source:

Methods

deleteItem($item) #

Deletes an item from the list

Parameters:

Name Type Description
$item jQuery
Source:
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
Source:
Retrieves JSON form of the list content

getListOfItems($elm) → {Array} #

Helper function to get ordered list of all items in list

Parameters:

Name Type Description
$elm jQuery

The list of items

Source:

Returns:

2D array of all items in all columns.

Type
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

Parameters:

Name Type Description
$item jQuery

List item in question

newOrder Array

2-D list of all items in new order

originalOrder Array

Original order of all items as 2-D list

Source:
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
Source:
Saves the JSON text to a CollaborationListContent page