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

In TableModel(), there is no way to delete all rows in 1 command #3006

Open
Christophe-fagiano opened this issue Sep 24, 2024 · 0 comments
Open

Comments

@Christophe-fagiano
Copy link

Detailed description

I need to clear the array in 1 command. As of today I can loop on all rows and call deleteRow()
the problem is each delete row does an this.dataChange.emit(); and this is badly impacting my preformances.

I wonder if a clearRow(index: number) would be a good approch, as it can clear all rows if an index= 0 is provided then all the array is cleared. It then will only emit 1 event.

clearRow(index: number) {
// index = 0 means clear all the array
//....... needed cleanup
this.dataChange.emit();
}

this a feature request (new function in a modal)

Is this issue related to a specific component? NO

What did you expect to happen? What happened instead? What would you like to see changed? see my comments

What browser are you working in? Firefox but this is not browser related

What version of the Carbon Design System are you using? This is a feature request

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

Steps to reproduce the issue

see https://ibm-systems-storage.slack.com/archives/CBZC0LM2N/p1727170729354599

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

No branches or pull requests

1 participant