block_recentlyaccesseditems/main

Description:
  • Javascript to initialise the Recently accessed items block.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Javascript to initialise the Recently accessed items block.

Methods

(inner) getRecentItems(limit) → {array}

Description:
  • Get recent items from backend.

Source:
Parameters:
Name Type Description
limit int

Only return this many results

Returns:

Items user most recently has accessed

Type
array

(inner) renderItems(root, items) → {promise}

Description:
  • Render the block content.

Source:
Parameters:
Name Type Description
root object

The root element for the items view.

items array

containing array of returned items.

Returns:

Resolved with HTML and JS strings

Type
promise