DashboardThemeAPI.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. define([], function () {
  9. /**
  10. * @interface DashboardThemeAPI
  11. * @classdesc API class that defines the user profile info accessible in a dashboard
  12. */
  13. var DashboardThemeAPI = function () {
  14. function DashboardThemeAPI() {
  15. _classCallCheck(this, DashboardThemeAPI);
  16. }
  17. /**
  18. * Gets the theme definition
  19. * @param {String} themeName - the name of the theme to load, default theme name is "defaultTheme"
  20. * @return {Promise} resolves to the loaded theme definition or if failed to load - resolves to the default theme definition or throws error if failed again
  21. */
  22. DashboardThemeAPI.prototype.getThemeDefinition = function getThemeDefinition() {};
  23. return DashboardThemeAPI;
  24. }();
  25. return DashboardThemeAPI;
  26. });
  27. //# sourceMappingURL=DashboardThemeAPI.js.map