adopted-ember-addons / adopted-ember-addons/ember-light-table

Accept an array as `valuePath`

未關閉
#456 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement help wanted maybe-breaking possible-addon
主要語言
JavaScript
星號
311
分支
130
PR 合併指標
30 天內沒有已合併 PR

描述

I often find myself needing to compute a cell's value dependent of more than one field of the row. But the current API allows only passing one key as the `valuePath`.

I work around this by just accessing whatever properties I need from the `row` attribute that is passed to the `cellComponent`. I think that's pretty ugly.

If we would allow users to pass a string or an array of strings to `valuePath`, then (in the latter case) we could pass an array of values as `value` to the `cellComponent`.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。