Add clear button in search box
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user