Skip to content

Commit f4ac37f

Browse files
committed
Add tool tips
1 parent 5787b53 commit f4ac37f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/app/document-viewer/document-viewer.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ export class DocumentViewerComponent implements OnInit {
1414
}
1515

1616
ngOnInit(): void {
17+
const mytooltips = DDV.Elements.getTooltip();
18+
mytooltips.DisplayMode = "Display Mode";
19+
mytooltips.AnnotationSet = "Add Annotation";
20+
DDV.Elements.setTooltip(mytooltips);
21+
1722
let config = DDV.getDefaultUiConfig("editViewer", { includeAnnotationSet: true });
1823
this.editViewer = new DDV.EditViewer({
1924
container: "document_container",
2025
uiConfig: config!,
2126
});
27+
2228
}
2329

2430
}

0 commit comments

Comments
 (0)