You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I added the clone functionality with this, and it works great.
this.cloneButton.toggle(this.isEditMode());
But when I save/close the clone dialog, it returns to the original dialog that was cloned. I would like for it to return all the way to the grid.
How can I achive this? I can't finde any ref to the "parent" dialog, and getCloningEntity() only works with the entityRow and not the Dialog object.
I guess I need to hook into onDialogClose(), by I need the ref to the parent dialog. Something like this:
public parentDialog: EntityDialog<xyzRow, any>;
protected onDialogClose() {
if (this.parentDialog) {
this.parentDialog.dialogClose();
}
}
But how do I set the parentDialog when I click clone?
Beta Was this translation helpful? Give feedback.
All reactions