The Javascript spreadsheet with Vue

Integrating jspreadsheet with Vue





See a full example on codesandbox

Get a source code of a sample Vue project

Source code

<html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>

<script src="https://jspreadsheet.com/v7/jspreadsheet.js"></script>
<script src="https://jsuites.net/v4/jsuites.js"></script>
<link rel="stylesheet" href="https://jspreadsheet.com/v7/jspreadsheet.css" type="text/css" />
<link rel="stylesheet" href="https://jsuites.net/v4/jsuites.css" type="text/css" />

<div id="spreadsheet"></div>

<br>

<input type="button" value="Add new row" onclick="vm.insertRow()" />

<script>
var options = {
    data:[[]],
    minDimensions:[10,10],
    license: 'M2RiZjdmY2MyMmIzM2JlMGQxZjZkODg5YzcxNjIxN2IxZWUzZjI3MDJlNTAyNDhkZTk1YzM1NTRiN2NkN2UyOTA5NzRmOWVkOWNlYmJkMmVkMjI4MzE0MzU1YTViZWQ2OGMwNDlkYmRkOTc5ZGYzOGExN2YwZGI2ZDYyMTU5YmYsZXlKdVlXMWxJam9pY0dGMWJDNW9iMlJsYkNJc0ltUmhkR1VpT2pFMk5EWXdPVEk0TURBc0ltUnZiV0ZwYmlJNld5SmpjMkl1WVhCd0lpd2lhbk5tYVdSa2JHVXVibVYwSWl3aWQyVmlMbUZ3Y0NJc0ltcHpjSEpsWVdSemFHVmxkQzVqYjIwaUxDSnFaWGhqWld3dWJtVjBJaXdpYkc5allXeG9iM04wSWwwc0luQnNZVzRpT2lJekluMD0=',
}

var vm = new Vue({
    el: '#spreadsheet',
    mounted: function() {
        let spreadsheet = jspreadsheet(this.$el, options);
        Object.assign(this, spreadsheet);
    }
}); 
</script>