How to get the currently selected row outside of the datatable 'click' callback?

How to get the currently selected row outside of the datatable 'click' callback?

SiegeLionSiegeLion Posts: 8Questions: 6Answers: 0

I have some buttons that are enabled when the user select a row. And clicking on these buttons trigger some changes.

But how do I know what row is selected when user clicks on the button?

I could set up a global variable.. but is it really necessary?

Any tricks to do this?

This discussion has been closed.