SlotActionsAPI.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 SlotActionsAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to obtain the list of slot actions available
  12. */
  13. define([], function () {
  14. var SlotActionsAPI = function () {
  15. function SlotActionsAPI() {
  16. _classCallCheck(this, SlotActionsAPI);
  17. }
  18. /**
  19. * @function SlotActionsAPI#registerProvider
  20. * @description Register a provider as a slot actions provider
  21. * @param {name} name of the provider
  22. * @param {provider} provider SlotAction provider to register and contribute to slot actions
  23. */
  24. SlotActionsAPI.prototype.registerProvider = function registerProvider() /* name, provider */{};
  25. /**
  26. * @function SlotActionsAPI#getSlotActionList
  27. * @description Returns a list of slotActions available for a specific item given a data slot and an item index.
  28. * @param {dataSlotId} id of the dataSlot
  29. * @param {itemIndex} index of the dataItem
  30. * @param {options} {actionOptions: {}, actionsToKeep: {}}
  31. * @return {array} array containing all available actions
  32. */
  33. SlotActionsAPI.prototype.getSlotActionList = function getSlotActionList() /* dataSlotId, itemIndex, options */{};
  34. return SlotActionsAPI;
  35. }();
  36. return SlotActionsAPI;
  37. });
  38. //# sourceMappingURL=SlotActionsAPI.js.map