ExpandedController.js 757 B

12345678910111213141516171819202122232425262728
  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(['jquery'], function ($) {
  8. var ExpandedController = function ExpandedController(options) {
  9. this.widget = options.widget;
  10. };
  11. ExpandedController.prototype.toggle = function () /*toggle*/{
  12. var $card = $('<div class="card">');
  13. this.widget.$el.parent().append($card);
  14. if (this.widget.getExpandViewContent) {
  15. this.widget.getExpandViewContent(this.data, $card);
  16. }
  17. return Promise.resolve();
  18. };
  19. return ExpandedController;
  20. });
  21. //# sourceMappingURL=ExpandedController.js.map