mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 10:40:41 +01:00
split out attribute_editor widget, WIP
This commit is contained in:
@@ -93,8 +93,8 @@ export default class AttributeListWidget extends TabAwareWidget {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.attributeEditorWidget = new AttributeEditorWidget().setParent(this);
|
||||
this.attributeDetailWidget = new AttributeDetailWidget().setParent(this);
|
||||
this.attributeEditorWidget = new AttributeEditorWidget(this.attributeDetailWidget).setParent(this);
|
||||
|
||||
this.child(this.attributeEditorWidget, this.attributeDetailWidget);
|
||||
}
|
||||
@@ -183,4 +183,8 @@ export default class AttributeListWidget extends TabAwareWidget {
|
||||
attributeRenderer.renderAttribute(attribute, $span, false);
|
||||
}
|
||||
}
|
||||
|
||||
updateAttributeListCommand({attributes}) {
|
||||
this.attributeEditorWidget.updateAttributeList(attributes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user