Expand all

ext.CollaborationKit.list.ui

Constructor

new ext.CollaborationKit.list.ui($, mw, OO) #

Parameters:

Name Type Description
$ jQuery
mw mw
OO OO
Source:

Methods

addItem(colId) #

Adds a new item to a list

Parameters:

Name Type Description
colId number

The ID number of the column

Source:
Adds a new item to a list

getItemFromUid(uid, columns) → {Object} #

Finds item object based on a UID.

Parameters:

Name Type Description
uid number

The relevant unique ID

columns Object

The columns object from the content object

Source:

Returns:

An object with keys relevantItem, relevantColumn, relevantRow

Type
Object
Finds item object based on a UID.

modifyExistingItem(itemName, uid) #

Edit an existing item.

Parameters:

Name Type Description
itemName string

The title of the item in question

uid string

Unique identifier based on order in native JSON representation

Source:
Edit an existing item.

modifyItem(itemToEdit) #

Opens a window to manage list item modification

Parameters:

Name Type Description
itemToEdit Object

Data concerning the item to edit/add. At minimum you need an itemColId attribute with the column ID.

Source:
Opens a window to manage list item modification