app/models/storage

(require("app/models/storage"))()

This is a wrapper for the competencydb methods, responsible for offline saving
Source:

Requires

  • module:jquery
  • module:knockout
  • module:common
  • module:settings
  • module:ko-mapping
  • module:ko-postbox

Methods

(static) getByUuid(uuid, callback) → {Promise}

GET BY UUID Get by template uuid
Parameters:
Name Type Description
uuid string
callback function
Source:
Returns:
Type
Promise

(static) save(data) → {object|array}

SAVE Saves on localdb or to the server (if online)
Parameters:
Name Type Description
data object | array the data to be saved
Source:
Returns:
Type
object | array