I want to create a new row when user leaves the cell after entering some data but it should not add a row when there is already one empty row in the grid and if the cell is empty.
Have you tried the
minSpareRow option? Here it is in the documentation https://handsontable.com/docs/api/options/#minsparerows and that is how it works in practice https://jsfiddle.net/n6k2q5sa/
How is the progress on the development going? If you need any help or have questions feel free to ping me.