When using the
lightning-datatable component, by default each row has a checkbox beside it (unless so explictely specify
false). So when a row is selected the
onrowselection event is fired for that row.
I was wondering if there's a way to detect when the checkbox at the header is selected (the one that selects all rows). I need to detect this since I want to implement a paginator and when the checkbox in the header is checked I want to also check rows in the other pages.
Any viable way to accomplish this?