Perspective Table select all

Has anyone used a button to select all the rows in a table? I see that someone has asked this in 2019, but there was no answer.

Doesnt really seem to be possible i think.
What would you want to do when you select everything?