diff --git a/src/app/markup-text-component/markup-text-icon-component/markup-text-icon.component.html b/src/app/markup-text-component/markup-text-icon-component/markup-text-icon.component.html new file mode 100644 index 0000000..7e1d002 --- /dev/null +++ b/src/app/markup-text-component/markup-text-icon-component/markup-text-icon.component.html @@ -0,0 +1,40 @@ + {{segment[1]}} + + + + + + + + + + {{segment[1]}} + + +
open resource in data browser
+
edit text
+
edit semantic annotation "{{segment[3][0].cssClass}}"
+
delete semantic annotation "{{segment[3][0].cssClass}}"
+
+ + + + diff --git a/src/app/markup-text-component/markup-text-icon-component/markup-text-icon.component.ts b/src/app/markup-text-component/markup-text-icon-component/markup-text-icon.component.ts new file mode 100644 index 0000000..9f899df --- /dev/null +++ b/src/app/markup-text-component/markup-text-icon-component/markup-text-icon.component.ts @@ -0,0 +1,24 @@ +import {Component, Input, OnChanges} from '@angular/core'; + +@Component({ + selector: 'app-markup-text-icon-component', + templateUrl: './markup-text-icon.component.html', + styleUrls: ['../markup-text-component.component.scss'] +}) +export class MarkupTextIconComponent implements OnChanges { + @Input() segment: any; + @Input() action: string; + @Input() position: string; + + constructor() { } + + ngOnChanges() { + console.log('position: ', this.position); + } + + openLink(iri) { + window.open(iri, '_blank'); + } + + +}