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