12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 'use strict';
- define(['../../lib/@waca/core-client/js/core-client/ui/core/View', 'underscore'], function (View, _) {
- var BaseTab = View.extend({
-
- properties: null,
- init: function init(options) {
- BaseTab.inherited('init', this, arguments);
- _.extend(this, options);
- },
- render: function render() {
- return Promise.resolve();
- },
- show: function show() {
- if (!this.isShowing) {
- this.isShowing = true;
- this.properties.$category = this.$el;
- this.properties._renderCategory(this.id);
- }
- },
- hide: function hide() {
- this.isShowing = false;
- }
- });
- return BaseTab;
- });
|