ContentActionsAPI.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. "use strict";
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Business Analytics (C) Copyright IBM Corp. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class ContentActionsAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to obtain the list of content actions available
  12. */
  13. define([], function () {
  14. var ContentActionsAPI = function () {
  15. function ContentActionsAPI() {
  16. _classCallCheck(this, ContentActionsAPI);
  17. }
  18. /**
  19. * @function ContentActionsAPI#registerProvider
  20. * @description Register a provider as a content actions provider
  21. * @param {name} name of the provider
  22. * @param {provider} provider ContentAction provider to register and contribute to content actions
  23. */
  24. ContentActionsAPI.prototype.registerProvider = function registerProvider() /* provider */{};
  25. /**
  26. * @function ContentActionsAPI#getContentActionList
  27. * @description Returns a list of ContentActions available for a specific item given a list of widget ids.
  28. * @param {array} idList list of widget ids
  29. * @return {array} array containing all available actions
  30. */
  31. ContentActionsAPI.prototype.getContentActionList = function getContentActionList() /* idList */{};
  32. return ContentActionsAPI;
  33. }();
  34. return ContentActionsAPI;
  35. });
  36. //# sourceMappingURL=ContentActionsAPI.js.map