Tab.js 914 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. 'use strict';
  2. /**
  3. * Licensed Materials - Property of IBM
  4. *
  5. * IBM Cognos Products: Dashboard
  6. *
  7. * Copyright IBM Corp. 2015, 2019
  8. *
  9. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  10. */
  11. define(['../../lib/@waca/core-client/js/core-client/ui/core/View', 'underscore'], function (View, _) {
  12. var BaseTab = View.extend({
  13. //Class fields
  14. properties: null,
  15. init: function init(options) {
  16. BaseTab.inherited('init', this, arguments);
  17. _.extend(this, options);
  18. },
  19. render: function render() {
  20. return Promise.resolve();
  21. },
  22. show: function show() {
  23. if (!this.isShowing) {
  24. this.isShowing = true;
  25. this.properties.$category = this.$el;
  26. this.properties._renderCategory(this.id);
  27. }
  28. },
  29. hide: function hide() {
  30. this.isShowing = false;
  31. }
  32. });
  33. return BaseTab;
  34. });
  35. //# sourceMappingURL=Tab.js.map