ExportView.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. 'use strict';
  2. /**
  3. * Licensed Materials - Property of IBM
  4. * IBM Cognos Products: Storytelling
  5. * Copyright IBM Corp. 2017, 2018
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. define(['bacontentnav/ui/views/SaveAsView', 'baglass/core-client/js/core-client/ui/properties/CheckBox', 'text!./templates/ExportView.html', '../nls/StringResources'], function (SaveAsView, CheckBox, template, stringResources) {
  9. var ExportView = SaveAsView.extend({
  10. templateString: template,
  11. events: {},
  12. init: function init() {
  13. ExportView.inherited('init', this, arguments);
  14. },
  15. render: function render() {
  16. ExportView.inherited('render', this, arguments);
  17. // TODO: Use ba-ui-toolkit checkbox here?
  18. this._oLoadCheckBox = new CheckBox({
  19. 'id': 'load_after_export',
  20. 'el': this.$('.loadAfterExportContainer'),
  21. 'name': 'loadAfterExport',
  22. 'label': stringResources.get('loadAfterExportLabel'),
  23. 'ariaLabel': stringResources.get('loadAfterExportLabel'),
  24. 'checked': true,
  25. 'controlOnLeft': true
  26. });
  27. this._oLoadCheckBox.doRender();
  28. },
  29. getLoadAfterExport: function getLoadAfterExport() {
  30. return this._oLoadCheckBox.isChecked();
  31. },
  32. remove: function remove() {
  33. this._oLoadCheckBox.remove();
  34. ExportView.inherited('remove', this, arguments);
  35. }
  36. });
  37. return ExportView;
  38. });
  39. //# sourceMappingURL=ExportView.js.map