PrintAPI.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class PrintAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to print an asset
  12. */
  13. define([], function () {
  14. var PrintAPI = function () {
  15. function PrintAPI() {
  16. _classCallCheck(this, PrintAPI);
  17. }
  18. /**
  19. * @public
  20. * @function PrintAPI#print
  21. * @param {Object} content of the page to print
  22. * @param {Object} pageOptions.pageSize size of the page eg: letter/legal/A4/Tabloid
  23. * @param {boolean} pageOptions.printFilters boolean value to represent whether to include filters or not
  24. * @description prints the current asset from the view
  25. */
  26. PrintAPI.prototype.print = function print() {};
  27. /**
  28. * @function PrintAPI#registerContent
  29. * @description Registers the asset type for printing
  30. * @param {string} type type of the current asset
  31. * @param {Object} api instance of the asset api
  32. */
  33. PrintAPI.prototype.registerContent = function registerContent() {};
  34. return PrintAPI;
  35. }();
  36. return PrintAPI;
  37. });
  38. //# sourceMappingURL=PrintAPI.js.map