mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
basic support for custom widgets
This commit is contained in:
@@ -11,6 +11,17 @@ export default class FlexContainer extends BasicWidget {
|
||||
this.attrs.style = `display: flex; flex-direction: ${direction};`;
|
||||
|
||||
this.children = [];
|
||||
|
||||
this.positionCounter = 10;
|
||||
}
|
||||
|
||||
child(component) {
|
||||
super.child(component);
|
||||
|
||||
component.position = this.positionCounter;
|
||||
this.positionCounter += 10;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
doRender() {
|
||||
|
||||
Reference in New Issue
Block a user