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

Accept an array as `valuePath`

Open
#456 7 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted maybe-breaking possible-addon
Dominant language
JavaScript
Stars
311
Forks
130
PR merge metrics
No merged PRs in 30d

Description

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`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.