RendererAPI.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. /**
  9. * @interface RendererAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to render dashboard content.
  12. * @example content.getFeature('Renderer')
  13. */
  14. define([], function () {
  15. var RendererAPI = function () {
  16. function RendererAPI() {
  17. _classCallCheck(this, RendererAPI);
  18. }
  19. /**
  20. * @function RendererAPI#render
  21. * @description Renders the content at the provided domNode. StateAPI can be used to wait for completion.
  22. * @param {HTMLElement} domNode Specifies where the content is rendered
  23. * @example await content.getFeature('Renderer').render(domNode);
  24. */
  25. RendererAPI.prototype.render = function render() {};
  26. /**
  27. * @function RendererAPI#destroy
  28. * @description Destroys the view and removes event listeners.
  29. */
  30. RendererAPI.prototype.destroy = function destroy() {};
  31. return RendererAPI;
  32. }();
  33. return RendererAPI;
  34. });
  35. //# sourceMappingURL=RendererAPI.js.map