Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After performing example 3 above, we can use the script below to programmatically add new rows into the speadsheet.


Code Block
languagejs
	<script>
    var col = hot.countRows();	
    hot.alter('insert_row', col, 1);	
    hot.setDataAtCell(col, 0, '-Name-');
    hot.setDataAtCell(col, 1, '-Surname-');
    hot.setDataAtCell(col, 2, '-Age-')
</script>


Reference: https://jsfiddle.net/ck4859zm/

...