Add clear button in search box

This commit is contained in:
aditya.chandel
2025-01-23 23:49:13 -07:00
parent 28cec000d8
commit 8f6c22e9d1
2 changed files with 20 additions and 1 deletions
@@ -354,6 +354,11 @@ export class BookBrowserComponent implements OnInit, AfterViewInit {
this.bookOrAuthor$.next(newTitle);
}
clearSearch(): void {
this.bookTitle = '';
this.onBookTitleChange('');
}
openShelfAssigner() {
this.dynamicDialogRef = this.dialogService.open(ShelfAssignerComponent, {
header: `Update Books' Shelves`,