TextEditorAPI.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 Cognos Products: BI Cloud (C) Copyright IBM Corp. 2019, 2020
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @interface TextEditorAPI
  10. * @hideconstructor
  11. * @classdesc TextEditor feature
  12. * @example dashboard.getFeature('TextEditor')
  13. */
  14. define([], function () {
  15. var TextEditorAPI = function () {
  16. function TextEditorAPI() {
  17. _classCallCheck(this, TextEditorAPI);
  18. }
  19. /**
  20. * @returns {Array} An array of all custom colors a widget title editor is using
  21. */
  22. TextEditorAPI.prototype.getCustomColorList = function getCustomColorList() {};
  23. /**
  24. * @param {Object} title which has the following structure
  25. * @param {String} title.widgetId the widget which the title belongs to
  26. * @param {TextEditor} title.textEditor The TextEditor instance for the widget's title
  27. * @param {String} title.titleId
  28. */
  29. TextEditorAPI.prototype.registerProvider = function registerProvider() {};
  30. return TextEditorAPI;
  31. }();
  32. return TextEditorAPI;
  33. });
  34. //# sourceMappingURL=TextEditorAPI.js.map