Created
November 28, 2017 05:27
-
-
Save PhilAndrew/ec2f1cbe59ef5a5abf0d1cd358d0e271 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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