Add functionality to disable a table row programmatically#3261
Add functionality to disable a table row programmatically#3261shivam-2002 wants to merge 2 commits intocarbon-design-system:masterfrom
Conversation
✅ Deploy Preview for carbon-components-angular ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
DCO Assistant Lite bot All contributors have signed the DCO. |
|
I have read the DCO document and I hereby sign the DCO. |
nilkhankari
left a comment
There was a problem hiding this comment.
Hi @shivam-2002
Thanks for creating this and pushing it for review. I just wanted to understand the purpose of this new functionality, since we already have the disabled property. Could you please share an example using StackBlitz and explain how this is used along with the existing disabled property?
Hi @nilkhankari, thank you for reviewing my pull request. I am not familiar with StackBlitz, but I have explained the situation in the issue as well: #3260. I’ll summarize it here again. Currently, I set data for the table component like this: row = []; If I need to disable a row, there isn’t a direct method to do it. Even when looking at the class implementation, there is no setter available for disabling a row. After investigating further, I noticed that if we convert |
Closes carbon-design-system/carbon-components-angular#
Add a method to the Table class that allows developers to disable a specific row by providing its index.
#3260