avallete / ag-grid-autocomplete-editor

Quick implementation of autocompletion into ag-Grid cell using autocompleter package.
MIT License
49 stars 25 forks source link

¿Accept promises in selectData? #46

Closed lcavero closed 4 years ago

lcavero commented 4 years ago

It would be great allow put promises in selectData. So you can use cellEditorParams to provide de data based in other selected cell. Ty

avallete commented 4 years ago

Hi @lcavero ,

Did you try to use the fetch option to asynchronously provide data to your select fields as stated into the documentation and the examples:

https://github.com/avallete/ag-grid-autocomplete-editor#autocompletion-with-ajax-request

If it doesn't fill your need, could you elaborate a little more maybe with an use case where using a Promise into selectData will be an improvement compared to the actual behaviour ?

lcavero commented 4 years ago

Yes, fetch solves my problem. I close that issue. Thanks.