PageCollectionView.js 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. 'use strict';
  2. /**
  3. * Licensed Materials - Property of IBM
  4. * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2013, 2017
  5. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  6. */
  7. define(['./LayoutBaseView', 'jquery', '../../../../lib/@waca/dashboard-common/dist/ui/AuthoringToolbar', '../../../../lib/@waca/core-client/js/core-client/utils/EventHelper'], function (BaseClass, $, Toolbar) {
  8. var PageCollectionView = null;
  9. PageCollectionView = BaseClass.extend({
  10. init: function init(options) {
  11. PageCollectionView.inherited('init', this, arguments);
  12. this.toolbar = options.toolbar ? options.toolbar : new Toolbar({ placement: 'bottom', container: $('body') });
  13. this._getViewId = this.consumeView._getViewId.bind(this.consumeView);
  14. this.htmlTemplate = options.services.getSvcSync('htmlTemplates');
  15. },
  16. destroy: function destroy() {
  17. PageCollectionView.inherited('destroy', this, arguments);
  18. }
  19. });
  20. return PageCollectionView;
  21. });
  22. //# sourceMappingURL=PageCollectionView.js.map