- Description:
Content bank UI actions.
- Source:
- Copyright:
- 2020 Bas Brands
- 2020 Bas Brands
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Content bank UI actions.
Methods
(inner) init()
- Description:
Set up the contentbank views.
- Source:
(inner) registerListenerEvents(contentBank)
- Description:
Register contentbank related event listeners.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
contentBank |
HTMLElement | The DOM node of the content bank |
(inner) setViewListPreference(viewList) → {Promise}
- Description:
Set the contentbank user preference in list view
- Source:
Parameters:
Name | Type | Description |
---|---|---|
viewList |
Bool | view ContentBank as list. |
Returns:
Repository promise.
- Type
- Promise
(inner) updateButtonTitle(button, ascending) → {Promise}
- Description:
Update the button title.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
button |
HTMLElement | Button to update |
ascending |
Bool | Sort direction |
Returns:
string promise
- Type
- Promise
(inner) updateSortButtons(contentBank, sortButton) → {Bool}
- Description:
Update the sort button view.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
contentBank |
HTMLElement | The DOM node of the contentbank button |
sortButton |
HTMLElement | The DOM node of the sort button |
Returns:
sort ascending
- Type
- Bool
(inner) updateSortOrder(fileArea, itemList, attribute, ascending)
- Description:
Update the sort order of the itemlist and update the DOM
- Source:
Parameters:
Name | Type | Description |
---|---|---|
fileArea |
HTMLElement | the Dom container for the itemlist |
itemList |
Array | Nodelist of Dom elements |
attribute |
String | the attribut to sort on |
ascending |
Bool | Sort Ascending |