How to restrict the selection in handsontable for one row or cell

I want to restrict the selection of row to only one, I tried with selection mode its not working, how can I achieve .

Hey @namrata.sahu

you should be able to modify the coordinates of a selected area via beforeSetRangeEnd hook.