mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 15:09:01 +01:00
19 lines
434 B
JavaScript
19 lines
434 B
JavaScript
import BasicWidget from "../basic_widget.js";
|
|
|
|
export default class Container extends BasicWidget {
|
|
doRender() {
|
|
this.$widget = $(`<div>`);
|
|
this.renderChildren();
|
|
}
|
|
|
|
renderChildren() {
|
|
for (const widget of this.children) {
|
|
try {
|
|
this.$widget.append(widget.render());
|
|
} catch (e) {
|
|
widget.logRenderingError(e);
|
|
}
|
|
}
|
|
}
|
|
}
|