You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the Datagrid component. I have one editable column and one column in which I want to put a highlight color on the cell text. However, the highlight color doesn't work with the following code:
After I removed the useEditableCell hook, the coloring works, but I cannot edit the editable cells anymore.
Component(s) impacted
Datagrid
Browser
Chrome, Firefox
@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version
v2.48.0
Suggested Severity
Severity 2 = Aspects of design is broken, and impedes users in a significant way, but there is a way to complete their tasks. Affects major functionality, has a workaround.
Hey @pywang122, yes that is correct. The useEditableCell hook does not currently allow for custom cell rendering. Our team is looking into some explorations using @tanstack/react-table (the next major version of react-table) and we'll be sure to include this functionality as a use case that teams are looking for.
This may be achievable in the current Datagrid via some custom styling. Can you explore that as a potential solution?
This issue is stale because it has been open for 7 days with no activity.
Remove the stale label or add a comment, otherwise this issue will be closed in 7 days.
Package
Carbon for IBM Products
Description
I am using the Datagrid component. I have one editable column and one column in which I want to put a highlight color on the cell text. However, the highlight color doesn't work with the following code:
After I removed the useEditableCell hook, the coloring works, but I cannot edit the editable cells anymore.
Component(s) impacted
Datagrid
Browser
Chrome, Firefox
@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version
v2.48.0
Suggested Severity
Severity 2 = Aspects of design is broken, and impedes users in a significant way, but there is a way to complete their tasks. Affects major functionality, has a workaround.
Product/offering
PowerVS
CodeSandbox or Stackblitz example
https://stackblitz.com/edit/github-nqwkhm?file=src%2FExample%2FExample.jsx,src%2Findex.scss,src%2FThemeSelector%2F_theme-dropdown.scss
Steps to reproduce the issue (if applicable)
In the Example.jsx provided in the codeSandbox, make one column editable and column with cell wrap:
Run it and the cell wraps on "First Name" and "Someone 11" won't take effect.
Then remove "useEditableCell" hook and the cell wraps will take effect.
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: