LayoutAPI.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. 2018, 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @typedef {Object} layoutRenderOptions
  10. * @property {Boolean} isBackgrounRun - Indicate that the rendering is non-interactive, for example thumbnail rendering
  11. */
  12. /**
  13. * @class LayoutAPI
  14. * @hideconstructor
  15. * @classdesc
  16. */
  17. define([], function () {
  18. var LayoutAPI = function () {
  19. function LayoutAPI() {
  20. _classCallCheck(this, LayoutAPI);
  21. }
  22. /**
  23. * Return a list of of child layout APIs
  24. * @function LayoutAPI#getChildrenList
  25. * @return {LayoutAPI[]}
  26. */
  27. LayoutAPI.prototype.getChildrenList = function getChildrenList() {};
  28. /**
  29. * Get the parent layout API
  30. * @function LayoutAPI#getParentLayout
  31. * @return {LayoutAPI} Null is returned if this is the top level layout
  32. */
  33. LayoutAPI.prototype.getParentLayout = function getParentLayout() {};
  34. /**
  35. * @function LayoutAPI#getWidget
  36. * Get the widget API for the widget inside this layout
  37. * @return {WidgetAPI} Null is returned if the layout does not contain a widget
  38. */
  39. LayoutAPI.prototype.getWidget = function getWidget() {};
  40. /**
  41. * Shows the layout
  42. * @function LayoutAPI#render
  43. * @param {layoutRenderOptions} [options]
  44. */
  45. LayoutAPI.prototype.render = function render() {};
  46. return LayoutAPI;
  47. }();
  48. return LayoutAPI;
  49. });
  50. //# sourceMappingURL=LayoutAPI.js.map