Skip to content

Instantly share code, notes, and snippets.

@PhilAndrew
Created November 28, 2017 05:27
Show Gist options
  • Save PhilAndrew/ec2f1cbe59ef5a5abf0d1cd358d0e271 to your computer and use it in GitHub Desktop.
Save PhilAndrew/ec2f1cbe59ef5a5abf0d1cd358d0e271 to your computer and use it in GitHub Desktop.
<template>
<no-ssr placeholder="Loading...">
<div :id="this.root"></div>
</no-ssr>
</template>
<script>
import Handsontable from 'handsontable';
import SettingsMapper from './settingsMapper';
import {
hotInit,
hotDestroy,
propFactory,
propWatchFactory,
updateHotSettings,
updateBulkHotSettings
} from './helpers';
export default {
name: 'HotTable',
props: propFactory(),
watch: propWatchFactory(updateHotSettings, updateBulkHotSettings),
mounted: function() { return hotInit(this); },
beforeDestroy: function() { return hotDestroy(this); },
};
</script>
<style>
@import "handsontable/dist/handsontable.full.css";
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment