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 090eec5 commit 470473bCopy full SHA for 470473b
1 file changed
How to/Dynamically enable or disable Text Selection/src/app/app.component.ts
@@ -59,20 +59,14 @@ export class AppComponent implements OnInit {
59
ngOnInit(): void { }
60
61
enableTextSelection(): void {
62
- this.isTextSelectionEnabled = true;
63
if (this.pdfViewerObj) {
64
this.pdfViewerObj.enableTextSelection = true;
65
- // Refresh viewer to apply the changes
66
- this.pdfViewerObj.refresh();
67
}
68
69
70
disableTextSelection(): void {
71
- this.isTextSelectionEnabled = false;
72
73
this.pdfViewerObj.enableTextSelection = false;
74
75
76
77
78
0 commit comments