mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 12:03:03 +00:00
finalised edit item page
This commit is contained in:
@@ -60,6 +60,11 @@ export class InputSuggestionsComponent implements ControlValueAccessor, OnChange
|
||||
*/
|
||||
@Input() name;
|
||||
|
||||
/**
|
||||
* Whether or not the current input is valid
|
||||
*/
|
||||
@Input() valid;
|
||||
|
||||
/**
|
||||
* Output for when the form is submitted
|
||||
*/
|
||||
@@ -80,6 +85,11 @@ export class InputSuggestionsComponent implements ControlValueAccessor, OnChange
|
||||
*/
|
||||
@Output() findSuggestions = new EventEmitter();
|
||||
|
||||
/**
|
||||
* Emits event when the input field loses focus
|
||||
*/
|
||||
@Output() blur = new EventEmitter();
|
||||
|
||||
/**
|
||||
* Emits true when the list of suggestions should be shown
|
||||
*/
|
||||
@@ -238,4 +248,8 @@ export class InputSuggestionsComponent implements ControlValueAccessor, OnChange
|
||||
this._value = val;
|
||||
this.propagateChange(this._value);
|
||||
}
|
||||
|
||||
focus() {
|
||||
this.queryInput.nativeElement.focus();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user