40 lines
653 B
TypeScript
40 lines
653 B
TypeScript
import { Component, OnInit,Input, Output } from '@angular/core';
|
|
|
|
declare var $: any;
|
|
|
|
|
|
@Component({
|
|
selector: 'autocomplete-remote',
|
|
templateUrl: './autocomplete-remote.component.html',
|
|
styleUrls: ['./autocomplete-remote.component.css']
|
|
})
|
|
|
|
export class AutocompleteRemoteComponent implements OnInit {
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
@Input() id : string = "test-field-123";
|
|
@Input() label : string = "Test";
|
|
@Input() url : string = "Test";
|
|
@Output() selectedValue : string;
|
|
|
|
allValues : string[];
|
|
|
|
query : string = null;
|
|
|
|
ngOnInit() {
|
|
$('#'+this.id).editableSelect();
|
|
|
|
}
|
|
|
|
updateByQuery(query){
|
|
if(query){
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|