We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1749e commit 2559f35Copy full SHA for 2559f35
src/app/item-page/mirador-viewer/mirador-viewer.component.ts
@@ -36,6 +36,11 @@ export class MiradorViewerComponent implements OnInit {
36
*/
37
@Input() canvasId: string;
38
39
+ /**
40
+ * Is used as canvas index of the element to show.
41
+ */
42
+ @Input() canvasIndex: string;
43
+
44
/**
45
* Hides embedded viewer in dev mode.
46
@@ -98,6 +103,9 @@ export class MiradorViewerComponent implements OnInit {
98
103
if (this.canvasId) {
99
104
viewerPath += `&canvasId=${this.canvasId}`;
100
105
}
106
+ if (this.canvasIndex) {
107
+ viewerPath += `&canvasIndex=${this.canvasIndex}`;
108
+ }
101
109
102
110
// TODO: Should the query term be trusted here?
111
return this.sanitizer.bypassSecurityTrustResourceUrl(viewerPath);
0 commit comments