This page covers a next version of Handsontable, and is not published yet.
This page covers a non-latest version of Handsontable.
Custom id, class, style, and other attributes can be passed into the hot-table wrapper element. Each of them will be applied to the root Handsontable element, allowing further customization of the table.
id
class
style
hot-table
import Vue from 'vue'; import { HotTable } from '@handsontable/vue'; import { registerAllModules } from 'handsontable/registry'; // register Handsontable's modules registerAllModules(); new Vue({ el: '#example1', data() { return { hotSettings: { startRows: 5, startCols: 5, colHeaders: true, stretchH: 'all', licenseKey: 'non-commercial-and-evaluation' }, id: 'my-custom-id', className: 'my-custom-classname', style: 'height: 142px; overflow: hidden; border: 1px solid red;' } }, components: { HotTable } });
<div id="example1"> <hot-table :id="id" :class="className" :style="style" :settings="hotSettings"></hot-table> </div>
← Setting up a translation in Vue 2 Custom context menu in Vue 2 →