Skip to content

Instantly share code, notes, and snippets.

@PhilAndrew
Created December 3, 2017 14:20
Show Gist options
  • Save PhilAndrew/0c35112451bbc15a9999b7e867390e4b to your computer and use it in GitHub Desktop.
Save PhilAndrew/0c35112451bbc15a9999b7e867390e4b to your computer and use it in GitHub Desktop.
<template>
<div id="hot-preview">
<HotTable :root="root" :settings="hotSettings"></HotTable>
</div>
</template>
<script>
let HotTable = null
if (process.BROWSER_BUILD) {
HotTable = require('vue-handsontable-official')
}
export default {
data: function () {
return {
root: 'test-hot',
hotSettings: {
data: [['sample', 'data']],
colHeaders: true
}
}
},
components: {
HotTable
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment