Module: viewsGrid_js

Methods

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

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

(inner) dragAndDropGrid(gridId) → {void}

Initializes a grid for drag and drop
Parameters:
Name Type Description
gridId string grid id
Source:
Returns:
Type
void

(inner) getTypeTitle(value) → {string}

Returns the friendly names for type icons
Parameters:
Name Type Description
value string tag value
Source:
Returns:
friendly name
Type
string

(inner) replaceGridCol(mode, col, el) → {void}

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

(inner) setGridImage(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) updateGrid(obj, list, perCardCallbackopt, createCardBodyCallbackopt, createCardActionsCallbackopt) → {void}

Updates the grid from the jsonrpc response
Parameters:
Name Type Attributes Description
obj object jsonrpc response
list string grid 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