[MNT-24553] Allow custom viewer extension components to obtain node id (#10115)

This commit is contained in:
MichalKinas
2024-08-22 17:38:32 +02:00
committed by GitHub
parent 8d7ea71711
commit 4124efd4a0
9 changed files with 21 additions and 1 deletions

View File

@@ -31,6 +31,10 @@ export class PreviewExtensionComponent implements OnInit, OnChanges, OnDestroy {
@Input()
id: string;
/** Identifier of a node that is opened by the viewer. */
@Input()
nodeId: string = null;
/** URL of the content in the repository. */
@Input()
url: string;
@@ -73,6 +77,7 @@ export class PreviewExtensionComponent implements OnInit, OnChanges, OnDestroy {
instance.url = this.url;
instance.extension = this.extension;
instance.nodeId = this.nodeId;
}
}
}