akveo / akveo/ng2-smart-table

getting value instead of result of valuePrepareFunction in custom editor

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

描述

When I call this.cell.getValue() on my custom editor component I get the result of the valuePrepareFunction (intended to format the data into a human firendly form) instead of the actual value of my data. is there any way to get the value inside the custom editor component?.

Custom editor component.

```
@Component({
selector: 'app-table-file-upload',
templateUrl: './table-file-upload.component.html',
styleUrls: ['./table-file-upload.component.scss']
})
export class TableFileUploadComponent extends DefaultEditor implements AfterViewInit {
public cell: Cell;
constructor() {
super()
}

ngAfterViewInit() {
let value= this.cell.getValue();
//This gives me the result of valuePrepareFunction, but that's not what i want to edit!
console.log(value)

}
}

```

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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