Epicor Kinetic get selected rows in a grid (Dashboard)

I would like to be able to get the rows that are currently selected in my grid so I can send them all in a function and then do something with it. Is there any way to do it in Kinetic?

I checked the “Selectable” in my Grid and added a selectable checkbox in the UI. Everything works fine. I then added a button that open a slide panel and I have 2 fields there. I would like to send the 2 fields + the data in my grid to my function to be able to do my calculation after that. The 2 fields are shared correctly but I can’t find a way to send the grid parameter to the function. How I am supposed to set up the parameter for it to work?