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

[Feature Request]: Add selectedRowIds as a property for Datagrid's state #6068

Open
2 tasks done
JoshPF opened this issue Sep 17, 2024 · 0 comments
Open
2 tasks done

Comments

@JoshPF
Copy link

JoshPF commented Sep 17, 2024

The problem

In our implementation of Datagrid, we need a way to override the default row selection, and would like to be able to pass in our own list of selectedRowIds as a prop to state (rather than only initialState).

The solution

We'd like a property to be added to datagridState.state for selectedRowIds so we can override the default selection behavior and can manually control the list of selectedRowIds, rather than letting it be handled internally by Datagrid.

Some other Carbon components offer a similar property, including the old v10 carbon-addons-iot Table component (which is no longer supported, and the documentation recommends you switch to Datagrid when upgrading to v11)

Design link

Example of this in the v10 carbon-addons-iot package (Ctrl+F for selectedIds)

Links to other materials

No response

Owner/main maintainer(s)

Matthew Gallo

Second/backup maintainer(s)

No response

Product/offering

No response

Business priority

Medium Priority = upcoming release but is not pressing

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs triage 🧐
Development

No branches or pull requests

2 participants