akveo/ng2-smart-table

Column list elements are not visible

bfarkash91 opened this issue · 1 comments

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?

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