akveo / akveo/ng2-smart-table

Unable to get state value on cell.getValuePrepareFunction callback

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

描述

It would be nice to be able to get some additional cell state information on the cell.getValuePrepareFunction callback, this would allow round tripping optional information state settings on the cell, column or row of that cell.

**proposed change to**
https://github.com/akveo/ng2-smart-table/blob/master/src/ng2-smart-table/lib/data-set/cell.ts#L17

**from**
return prepare.call(null, this.value);
**to**
return prepare.call(null, this.value, {row: this.row, column: this.column, dataSet: this.dataSet});

that would allow access to some additional cell state without breaking existing code

**reason for request**
I am interested in being able to store state information on the cell settings and would like to retrieve that information on the callback

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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