Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Column): added support for nested values of dataKey on Column #268

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

simonguo
Copy link
Member

const data = [
  {
    name: ['foo', 'bar'],
    address: { city: 'Shanghai', zipCode: '20000' }
  }
];

return (
  <Table data={data}>
    <Column>
      <HeaderCell>name</HeaderCell>
      <Cell dataKey="name.0" />
    </Column>

    <Column>
      <HeaderCell>city</HeaderCell>
      <Cell dataKey="address.city" />
    </Column>
  </Table>
);

discuss: rsuite/rsuite#2129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant