Perspective Table Select All Button

Is there a way to script the selection of all rows in the table? It is simple enough to select a single row from a button. I can even populate the selection.data from table.data but that does not highlight the rows to show that they are selected to the user. I have thought about manipulating selection.data and scripting the color of the rows but I thought I would check to see if there is a more simple way to select more than one row from a button first.