Skip to content
Snippets Groups Projects
Commit 610049b4 authored by jojohoch's avatar jojohoch
Browse files

[player] Rename method 'onChildrenAdded'

parent 5fa9a037
No related branches found
No related tags found
No related merge requests found
Pipeline #38320 passed
......@@ -5,14 +5,14 @@
#elementComponent
[parentForm]="form"
[elementModel]="elementModel | cast: ClozeElement"
(childrenAdded)="onChildrenAdded($event)">
(childrenAdded)="registerCompoundChildren($event)">
</aspect-cloze>
<aspect-likert
*ngIf="elementModel.type === 'likert'"
#elementComponent
[parentForm]="form"
[elementModel]="elementModel | cast: LikertElement"
(childrenAdded)="onChildrenAdded($event)">
(childrenAdded)="registerCompoundChildren($event)">
</aspect-likert>
</form>
......
......@@ -48,7 +48,7 @@ export class CompoundGroupElementComponent extends ElementFormGroupDirective imp
this.createForm((this.elementModel as CompoundElement).getChildElements() as InputElement[]);
}
onChildrenAdded(children: ElementComponent[]): void {
registerCompoundChildren(children: ElementComponent[]): void {
children.forEach(child => {
const childModel = child.elementModel as InputElement;
this.registerAtUnitStateService(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment