获取单元格渲染器中的值列键?

Obtaining the value column key inside a cell renderer?

是否可以在单元格渲染器中获取列键?

例如在`CustomRenderComponent Demo中单元格的值和行数据是这样注入的:

@Input() value: string | number;
@Input() rowData: any;

有没有办法获取当前列键?类似于:

@input column: string;

或获取 Cell 个实例?

Cellclass有这样的方法:

getColumn(): Column {
  return this.column;
}

智能Table问题

https://github.com/akveo/ng2-smart-table/issues/518

看看custom-view.component.ts。它有一个方法 getPatch() return 是 ViewCell。将此方法更改为 return a Cell.

现在自定义渲染器实现将使用整个 Cell 实例进行修补,而不是属于它的一些组件。

创建一个此类渲染器应实现的新接口,而不是仅仅让它实现 ViewCell 接口。