LiveWidgetDOMAPI.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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, 2020
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class LiveWidgetDOMAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to get a JSON representation of the the UI of the widget
  12. */
  13. define([], function () {
  14. var LiveWidgetDOMAPI = function () {
  15. function LiveWidgetDOMAPI() {
  16. _classCallCheck(this, LiveWidgetDOMAPI);
  17. }
  18. /**
  19. * @function LiveWidgetDOMAPI#getUIJSON
  20. * @description get a JSON representation of the the UI of widget
  21. * @returns {Object} UIJSON A JSON representation of the UI of the widget
  22. * @returns {array} UIJSON.widgetIcons Array of objects containing the label of the visible widget icons displayed. Visible icons which do not have a matching aria-label and title will return a null label. Otherwise, returns undefined.
  23. * @returns {object} UIJSON.title Title object containing: value, fontSize, fontFamily, and alignment. Returns undefined if the title is not displayed.
  24. */
  25. LiveWidgetDOMAPI.prototype.getUIJSON = function getUIJSON() {};
  26. /**
  27. * @function LiveWidgetDOMAPI#registerProvider
  28. * @description Register a provider as a LiveWidgetDOMAPI UIJSON provider
  29. * @param {provider} provider LiveWidgetDOMAPI provider to register and contribute to UIJSON
  30. */
  31. LiveWidgetDOMAPI.prototype.registerProvider = function registerProvider() {};
  32. return LiveWidgetDOMAPI;
  33. }();
  34. return LiveWidgetDOMAPI;
  35. });
  36. //# sourceMappingURL=LiveWidgetDOMAPI.js.map