/
viewer-playground.component.html
47 lines (39 loc) · 1.61 KB
/
viewer-playground.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div class="single-resource-view">
<h3>Single resource viewer</h3>
<p>The <strong>DspViewerModule</strong> contains different component to display a resource.
The example here shows the usage of <span>dsp-resource-view</span> which combines smaller
components like one of the representation viewer or the value components. All of them can
also be used individually.</p>
<ul>
<li *ngFor="let res of resources; let i = index"
class="link"
[class.active]="resourceIri === res"
(click)="resourceIri = res">
Example {{i}}: {{res}}
</li>
</ul>
<dsp-resource-view
[iri]="resourceIri"
[showToolbar]="true"
(referredProjectClicked)="refProjectClicked($event)"
(referredProjectHovered)="refProjectHovered($event)"
(referredResourceClicked)="refResourceClicked($event)"
(referredResourceHovered)="refResourceHovered($event)">
</dsp-resource-view>
</div>
<br><br>
<hr>
<div class="multiple-resources-viewer">
<h3>Multiple resources viewer</h3>
<p>The example here shows the usage of <strong>dsp-multiple-resources-view</strong> which
splits the view vertically and horizontally depending on the number of resources
selected and displays its details.
</p>
<p>Resources displayed:</p>
<ul>
<li *ngFor="let res of resourceIds; let i = index" style="background-color: aliceblue;">
{{res}}
</li>
</ul>
<dsp-multiple-resources-view [noOfResources]="noOfResources" [resourceIds]="resourceIds"></dsp-multiple-resources-view>
</div>