PlaceholderView.js 844 B

123456789101112131415161718192021222324252627282930313233
  1. 'use strict';
  2. /**
  3. * Licensed Materials - Property of IBM
  4. * IBM Cognos Products: Storytelling (C) Copyright IBM Corp. 2018
  5. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  6. */
  7. define(['../../../lib/@waca/core-client/js/core-client/ui/core/View'], function (View) {
  8. var PlaceholderView = null;
  9. PlaceholderView = View.extend({
  10. init: function init() {
  11. PlaceholderView.inherited('init', this, arguments);
  12. },
  13. hide: function hide() {
  14. this.$el.find('.placeholder').hide();
  15. this._isShowing = false;
  16. },
  17. show: function show() {
  18. this.$el.find('.placeholder').show();
  19. this._isShowing = true;
  20. },
  21. isShowing: function isShowing() {
  22. return this._isShowing;
  23. }
  24. });
  25. return PlaceholderView;
  26. });
  27. //# sourceMappingURL=PlaceholderView.js.map