Add autocomplete input option on search control

Refs #69
This commit is contained in:
Will Abson
2016-06-02 09:23:36 +01:00
parent f6964aed77
commit 831bc9eb7d
3 changed files with 9 additions and 1 deletions

View File

@@ -38,6 +38,9 @@ export class AlfrescoSearchControlComponent {
@Input()
inputType = 'text';
@Input()
autocomplete: boolean = true;
@Input()
expandable: boolean = true;
@@ -67,6 +70,10 @@ export class AlfrescoSearchControlComponent {
return this.expandable ? ' mdl-textfield__expandable-holder' : '';
}
getAutoComplete(): string {
return this.autocomplete ? 'on' : 'off';
}
/**
* Method called on form submit, i.e. when the user has hit enter
*