akveo / akveo/ng2-smart-table

Ng2-smart-table list set selected item trouble.

未关闭
#1,016 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

Hi everyone,

I'm working on a crud scenario. Adding new item is OK but edit time I have some trouble.
I'm using settings like this, I have listed clearly on adding new item.

``` json
vehicleType: {
title: 'Araç',
editor: {
type: 'list',
config: {
selectText: 'Select',
list: this.vehicleTypeList,
},
}
}
```

But when I want to edit new item **select option** list notthing to show selected item. I want to set **select** item saved data to update data.

As you see below image , when click edit button on the right drop down selected item always empty on red line circle, I need to do blue circle , items need to fill like this.

![gapfluscapture](https://user-images.githubusercontent.com/8382599/58550177-e0443000-8215-11e9-855b-0bfe9c3220da.JPG)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。