UnionAPI.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 UnionAPI
  10. * @hideconstructor
  11. * @classdesc Provides access to the the union object associated to a dataitem.
  12. */
  13. define([], function () {
  14. return function () {
  15. function UnionAPI() {
  16. _classCallCheck(this, UnionAPI);
  17. }
  18. /**
  19. * @function UnionAPI#getDataItemList
  20. * @description Gets a list of its expanded children dataItems
  21. * @public
  22. *
  23. * @returns {DataItemAPI[]}
  24. */
  25. UnionAPI.prototype.getDataItemList = function getDataItemList() {};
  26. /**
  27. * @function UnionAPI#getDataItem
  28. * @description Gets the expanded child dataitem with the id passed in
  29. * @public
  30. *
  31. * @param {String} Id dataitem id to find
  32. * @returns {DataItemAPI}
  33. */
  34. UnionAPI.prototype.getDataItem = function getDataItem() /*id*/{};
  35. /**
  36. * @function UnionAPI#setDataItems
  37. * @description sets the children of this dataItem to the models passed in
  38. * @public
  39. *
  40. * @param {Array} dataItemPropsList dataItem properties to set the children to
  41. * @param {Object} transactionToken
  42. * @returns {[DataItemAPI]}
  43. */
  44. UnionAPI.prototype.setDataItems = function setDataItems() /*dataItemPropsList, transactionToken*/{};
  45. /**
  46. * @function UnionAPI#addColumn
  47. * @description adds a new child dataItem model and returns its dataItemAPI
  48. * @public
  49. *
  50. * @param {Object} dataItemProps attributes for the dataitem.
  51. * @param {Object} transactionToken
  52. * @returns {DataItemAPI} added dataItem
  53. */
  54. UnionAPI.prototype.addDataItem = function addDataItem() /*dataItemProps, transactionToken*/{};
  55. /**
  56. * @function UnionAPI#removeColumn
  57. * @description removes the child dataItem model with the id passed in
  58. * @public
  59. *
  60. * @param {String} dataItemId id of dataItem to remove
  61. * @param {Object} transactionToken
  62. * @returns {DataItemAPI} removed dataItem
  63. */
  64. UnionAPI.prototype.removeDataItem = function removeDataItem() /*dataItemId, transactionToken*/{};
  65. return UnionAPI;
  66. }();
  67. });
  68. //# sourceMappingURL=UnionAPI.js.map