Replies: 1 comment
-
At the component level, there is no particularly good way to, However, you can use a simple data transformation to make the source data fit the requirements: const data = source.reduce((pre, next) => {
if (!isUser(next)) return [...pre, next]
const { name, id } = next
return [...pre, { ...next, value: name }, { ...next, value: id }]
}, []) After you do anything, you can still use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
geist Table.Column component checks
prop
field be key of the passed data, but what if I need to render two columns by the same key? For example if there is auser
struct in my data, I need to displayuser.name
anduser.id
in different columnsBeta Was this translation helpful? Give feedback.
All reactions