akveo / ng2-smart-table

Angular Smart Data Table component
https://akveo.github.io/ng2-smart-table/
MIT License
1.63k stars 879 forks source link

Column list elements are not visible #1336

Open bfarkash91 opened 1 year ago

bfarkash91 commented 1 year ago

Hi,

I try to implement a drop down solution when i editing a row, but the list elements are not visible.

This is how my config looks like:

companyId: { title: "Company ID", type: "string", editor: { type: "list", config: { selectText: "Select...", list: this.companies, }, }, },

I tried with, async, awaoit, promise but nothing....

What is the correct implementaion if i want to init the list from api?

jupmorenor commented 1 year ago

Use a custom renderComponent. In your custom component you can do api calls to fill list with data. look at this