auto-complete icon indicating copy to clipboard operation
auto-complete copied to clipboard

Passing params to the source function

Open adeelmahmood opened this issue 7 years ago • 0 comments

Is it possible to pass parameters to the source function? I am using the autocomplete on a text box inside a grid component and different results should be retrieved based on which input box the search is being done for. In reactive forms, this is how I am specifying the source function:

[source]="searchUdaValues.bind(this)"

Instead, if I can pass params like this:

[source]="searchUdaValues.bind(this, indexOfInput)"

then I should be able to include the relevant information in the remote call to retrieve appropriate results.

adeelmahmood avatar May 05 '17 00:05 adeelmahmood