mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
Find-as-you-type improvements
- Add autocompleteEnabled input property for find-as-you-type - Support escape and down arrow keys for hiding/showing FAYT results - Add tests for find-as-you-type Refs #737
This commit is contained in:
@@ -58,6 +58,9 @@ export class AlfrescoSearchControlComponent implements OnInit {
|
||||
|
||||
@ViewChild('searchInput', {}) searchInput: ElementRef;
|
||||
|
||||
@Input()
|
||||
autocompleteEnabled = true;
|
||||
|
||||
@Input()
|
||||
autocompleteSearchTerm = '';
|
||||
|
||||
@@ -146,4 +149,12 @@ export class AlfrescoSearchControlComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
onEscape(): void {
|
||||
this.searchActive = false;
|
||||
}
|
||||
|
||||
onArrowDown(): void {
|
||||
this.searchActive = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user