FlyoutContentBase.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. 'use strict';
  2. /**
  3. * Licensed Materials - Property of IBM
  4. * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2014, 2017
  5. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  6. */
  7. define(['../lib/@waca/core-client/js/core-client/ui/core/View'], function (View) {
  8. var FlyoutContentBase = View.extend({
  9. init: function init(options) {
  10. this.popupParent = options.popupContainer;
  11. this.content = options.content || '';
  12. FlyoutContentBase.inherited('init', this, arguments);
  13. },
  14. /**
  15. * Returns html content for the view
  16. * Derived classes would override this
  17. */
  18. getRenderedHtml: function getRenderedHtml() {
  19. return this.content; // return html output
  20. },
  21. /**
  22. * Callback invoked on Popup getting shown, this is where event handlers could be hooked up in the view
  23. * Optional, Derived classes could override this
  24. */
  25. onPopupShown: function onPopupShown() {
  26. //placeholder for now
  27. },
  28. /**
  29. * Callback invoked on Popup getting closed
  30. * Optional, Derived classes could override this
  31. */
  32. onPopupClosed: function onPopupClosed() {
  33. //placeholder for now
  34. }
  35. });
  36. return FlyoutContentBase;
  37. });
  38. //# sourceMappingURL=FlyoutContentBase.js.map