mirror of
https://github.com/zadam/trilium.git
synced 2024-11-18 05:35:56 +08:00
19 lines
No EOL
451 B
JavaScript
19 lines
No EOL
451 B
JavaScript
import BasicWidget from "./basic_widget.js";
|
|
|
|
export default class RowFlexContainer extends BasicWidget {
|
|
constructor(appContext, widgets) {
|
|
super(appContext);
|
|
|
|
this.children = widgets;
|
|
}
|
|
|
|
render() {
|
|
this.$widget = $(`<div style="display: flex; flex-direction: row;">`);
|
|
|
|
for (const widget of this.children) {
|
|
this.$widget.append(widget.render());
|
|
}
|
|
|
|
return this.$widget;
|
|
}
|
|
} |