Sha256: 09fe7a90a6bf13fa5e18069703a9b7cfe48cf08e1cee52a31c92bf02e3f321b6

Contents?: true

Size: 588 Bytes

Versions: 9

Compression:

Stored size: 588 Bytes

Contents

import Component from "@ember/component";

export default Component.extend({
  classNameBindings: ["active", ":content"],
  isLink: false,

  invokeParent(name) {
    let current = this.get("parentView");
    while (current && !current[name]) {
      current = current.get("parentView");
    }
    if (current) {
      current[name](this);
    }
  },

  didInsertElement() {
    this.invokeParent("addTab");
    if (this.get("defaultTab")) {
      this.invokeParent("selectTab");
    }
  },

  willDestroyElement() {
    this.invokeParent("removeTab");
  }
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logster-2.1.0 client-app/app/components/tab-contents.js
logster-2.0.1 client-app/app/components/tab-contents.js
logster-2.0.0.pre client-app/app/components/tab-contents.js
logster-1.4.0.pre client-app/app/components/tab-contents.js
logster-1.3.4 client-app/app/components/tab-contents.js
logster-1.3.3 client-app/app/components/tab-contents.js
logster-1.3.2 client-app/app/components/tab-contents.js
logster-1.3.0 client-app/app/components/tab-contents.js
logster-1.3.pre client-app/app/components/tab-contents.js