Skip to content

Commit 470473b

Browse files
966016: Sample on How to Dynamically enable or disable Text Selection
1 parent 090eec5 commit 470473b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

How to/Dynamically enable or disable Text Selection/src/app/app.component.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,14 @@ export class AppComponent implements OnInit {
5959
ngOnInit(): void { }
6060

6161
enableTextSelection(): void {
62-
this.isTextSelectionEnabled = true;
6362
if (this.pdfViewerObj) {
6463
this.pdfViewerObj.enableTextSelection = true;
65-
// Refresh viewer to apply the changes
66-
this.pdfViewerObj.refresh();
6764
}
6865
}
6966

7067
disableTextSelection(): void {
71-
this.isTextSelectionEnabled = false;
7268
if (this.pdfViewerObj) {
7369
this.pdfViewerObj.enableTextSelection = false;
74-
// Refresh viewer to apply the changes
75-
this.pdfViewerObj.refresh();
7670
}
7771
}
7872
}

0 commit comments

Comments
 (0)