import AbstractContainer from "./abstract_container.js"; const TPL = `
`; export default class CollapsibleSectionContainer extends AbstractContainer { doRender() { this.$widget = $(TPL); this.contentSized(); this.$titleContainer = this.$widget.find('.section-title-container'); this.$bodyContainer = this.$widget.find('.section-body-container'); this.$titleContainer.append('
'); for (const widget of this.children) { this.$titleContainer.append( $('
') .append(widget.renderTitle()) ); this.$titleContainer.append('
'); this.$bodyContainer.append( $('
') .append(widget.render()) ); } } }