There is a newer version of Handsontable available. Switch to the latest version ⟶
Start with a basic example of the Vue 2 data grid, using component props for configuration and external control.
In this example, a div element of id="example1" where the @handsontable/vue component will be rendered.
div
id="example1"
@handsontable/vue
import { HotTable } from '@handsontable/vue'; import { registerAllModules } from 'handsontable/registry'; import 'handsontable/dist/handsontable.full.css'; // register Handsontable's modules registerAllModules(); const ExampleComponent = { data: function() { return { hotSettings: { data: [ ['', 'Ford', 'Volvo', 'Toyota', 'Honda'], ['2016', 10, 11, 12, 13], ['2017', 20, 11, 14, 13], ['2018', 30, 15, 12, 13] ], colHeaders: true, height: 'auto', licenseKey: 'non-commercial-and-evaluation' } }; }, components: { HotTable } } export default ExampleComponent;
<div id="example1"> <hot-table :settings="hotSettings"></hot-table> </div>
← Installation in Vue 2 Modules in Vue 2 →