akveo / akveo/ng2-smart-table

Column dropdown values are not dynamically updating in edit mode.

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

描述

Hi,

I am trying to bind dynamic values to the dropdown in edit mode but it is not updating.

My settings column is this:

columns: {
allowedValue: {
title: 'Value',
filter: true,
editor: {
type: 'list',
config: {
selectText: 'Select',
list:[]
}
}
}
}

My code for edit mode is this :

arrayValue=[];
onEdit(event){

this.arrayValue=event.data.allowedValue.split(',');
this.arrayValue.forEach(element => {
const listValue={
'value':element,
'title':element
}
this.settings.columns.allowedValue.editor.config.list.push(listValue);
});
}

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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