DashboardSettingsAPI.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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 DashboardSettingsAPI
  11. * @hideconstructor
  12. * @classdesc API interface to be implemented as a bootstrap feature in order to provide global dashboard settings
  13. * @example dashboardAPI.getFeature('DashboardSettings')
  14. */
  15. var DashboardSettingsAPI = function () {
  16. function DashboardSettingsAPI() {
  17. _classCallCheck(this, DashboardSettingsAPI);
  18. }
  19. /**
  20. * Returns the setting corresponding to the given name
  21. * @param {string} name Name of the setting
  22. * @return {object} Value of the setting; undefined if the setting does not exist
  23. * @example dashboardAPI.getFeature('DashboardSettings').get('fonts')
  24. */
  25. DashboardSettingsAPI.prototype.get = function get() {};
  26. return DashboardSettingsAPI;
  27. }();
  28. return DashboardSettingsAPI;
  29. });
  30. //# sourceMappingURL=DashboardSettingsAPI.js.map