Event type of search in p-autocomplete

UI Components for Angular
Post Reply
zakhussain
Posts: 4
Joined: 07 Nov 2016, 06:07

25 Nov 2016, 18:16

I am have the following code

Code: Select all

<p-autoComplete [(ngModel)]="texts" [suggestions]="results" (completeMethod)="search($event)" [multiple]="true"></p-autoComplete>
In this what is the type of the event in search($event)

I have codealyzer setup and it is complaining for me to specify the event type when I have the following code in my component

Code: Select all

    search(event) {
        this.mylookupservice.getResults(event.query).then(data => {
            this.results = data;
        });
    }

dzhavat
Posts: 54
Joined: 04 Nov 2016, 12:39

26 Nov 2016, 22:42

Code: Select all

search(event: Event) {
That should do it :)

itsme
Posts: 4
Joined: 02 Oct 2017, 11:31

12 Jan 2021, 11:25

Which Event is that? The only Event I get from IntelliJ is for Angular Router

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests