split out attribute_editor widget, WIP

This commit is contained in:
zadam
2020-07-17 23:55:59 +02:00
parent 9f527f0330
commit a94ae81c30
3 changed files with 114 additions and 75 deletions

View File

@@ -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);
}
}