import TabAwareWidget from "./tab_aware_widget.js"; import AttributeDetailWidget from "./attribute_detail.js"; import attributeRenderer from "../services/attribute_renderer.js"; const TPL = `
`; export default class InheritedAttributesWidget extends TabAwareWidget { constructor() { super(); this.attributeDetailWidget = new AttributeDetailWidget().setParent(this); this.child(this.attributeDetailWidget); } renderTitle(note) { const inheritedAttributes = this.getInheritedAttributes(note); this.$title.text(`Inherited attrs (${inheritedAttributes.length})`); return { show: true, $title: this.$title }; } doRender() { this.$widget = $(TPL); this.contentSized(); this.$container = this.$widget.find('.inherited-attributes-container'); this.$widget.append(this.attributeDetailWidget.render()); this.$title = $('