Module: viewsList_js

Methods

(inner) createListBody(body, data, list) → {void}

Populates the list body
Parameters:
Name Type Description
body Element list element body to populate
data object data to populate
list string view name
Source:
Returns:
Type
void

(inner) dragAndDropList(listId) → {void}

Initializes a list for drag and drop of list-group-items
Parameters:
Name Type Description
listId string table id
Source:
Returns:
Type
void

(inner) replaceListItem(mode, item, el) → {void}

Replaces a list item and tries to keep the selection state
Parameters:
Name Type Description
mode boolean the selection mode
item HTMLElement item to replace
el HTMLElement replacement col
Source:
Returns:
Type
void

(inner) setListImage(changes, observer) → {void}

Callback function for intersection observer to lazy load cover images
Parameters:
Name Type Description
changes object IntersectionObserverEntry objects
observer object IntersectionObserver
Source:
Returns:
Type
void

(inner) updateList(obj, list, perCardCallbackopt, createCardBodyCallbackopt, createCardActionsCallbackopt) → {void}

Updates the list from the jsonrpc response
Parameters:
Name Type Attributes Description
obj object jsonrpc response
list string list name to populate
perCardCallback function <optional>
callback per card
createCardBodyCallback function <optional>
callback to create the footer
createCardActionsCallback function <optional>
callback to create the footer
Source:
Returns:
Type
void