IconsAPI.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. 2020
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class IconsAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to obtain the icon that is required to be displayed
  12. */
  13. define([], function () {
  14. var IconsAPI = function () {
  15. function IconsAPI() {
  16. _classCallCheck(this, IconsAPI);
  17. }
  18. /**
  19. * @function IconsAPI#registerIcons
  20. * @description Register the icons from a component
  21. * @param {IconObj[]} iconList a list of icons that the component uses.
  22. */
  23. IconsAPI.prototype.registerIcons = function registerIcons() /* icons */{};
  24. /**
  25. * @function IconsAPI#getIcon
  26. * @description Returns an icon from the cache based on the id passed to it
  27. * @param {string} iconId Id of the icon
  28. * @return {IconObj} object containing the icon details
  29. */
  30. IconsAPI.prototype.getIcon = function getIcon() /* iconId */{};
  31. return IconsAPI;
  32. }();
  33. return IconsAPI;
  34. });
  35. //# sourceMappingURL=IconsAPI.js.map