PinningActionHandler.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. 'use strict';
  2. /*
  3. *+------------------------------------------------------------------------+
  4. *| Licensed Materials - Property of IBM
  5. *| IBM Cognos Products
  6. *| (C) Copyright IBM Corp. 2016, 2017
  7. *|
  8. *| US Government Users Restricted Rights - Use, duplication or disclosure
  9. *| restricted by GSA ADP Schedule Contract with IBM Corp.
  10. *+------------------------------------------------------------------------+
  11. */
  12. define(['../../../lib/@waca/dashboard-common/dist/glass/controllers/BaseSlideoutActionHandler', '../../../app/nls/StringResources'], function (BaseClass, stringResources) {
  13. var ActionHandler = BaseClass.extend({
  14. getExtraCustomSpec: function getExtraCustomSpec(_ref) {
  15. var glassContext = _ref.glassContext,
  16. target = _ref.target;
  17. var itemSpec = target && target.plugin && target.plugin.itemSpec;
  18. var module = itemSpec && itemSpec.content && itemSpec.content.module || 'dashboard-core/js/pinning/PinView';
  19. var dashboardView = glassContext.appController.getCurrentContentView();
  20. return {
  21. id: 'dashboardPanel',
  22. reuseSlideout: true,
  23. width: '400px',
  24. position: 'left',
  25. resizable: {
  26. min: 300
  27. },
  28. pinning: {
  29. isPinned: true,
  30. float: false,
  31. display: false
  32. },
  33. label: stringResources.get('pinsOld'),
  34. content: {
  35. module: module,
  36. glassContext: glassContext,
  37. services: dashboardView.services,
  38. canvasController: dashboardView.boardLoader.canvasController
  39. }
  40. };
  41. }
  42. });
  43. return ActionHandler;
  44. });
  45. //# sourceMappingURL=PinningActionHandler.js.map