I need to be able to click on row and open edit modal, but have trash icon and when clicked on icon, open delete modal. I have made that, but how to pass data of line clicked to delete modal. onRowClick works well, but can not pass data to icon click.
I need to be able to click on row and open edit modal, but have trash icon and when clicked on icon, open delete modal. I have made that, but how to pass data of line clicked to delete modal. onRowClick works well, but can not pass data to icon click.