Package Exports
- xx-handsontable
- xx-handsontable/base
- xx-handsontable/cellTypes
- xx-handsontable/cellTypes/autocompleteType
- xx-handsontable/cellTypes/checkboxType
- xx-handsontable/cellTypes/dateType
- xx-handsontable/cellTypes/dropdownType
- xx-handsontable/cellTypes/handsontableType
- xx-handsontable/cellTypes/numericType
- xx-handsontable/cellTypes/passwordType
- xx-handsontable/cellTypes/registry
- xx-handsontable/cellTypes/textType
- xx-handsontable/cellTypes/timeType
- xx-handsontable/editors
- xx-handsontable/editors/autocompleteEditor
- xx-handsontable/editors/baseEditor
- xx-handsontable/editors/checkboxEditor
- xx-handsontable/editors/dateEditor
- xx-handsontable/editors/dropdownEditor
- xx-handsontable/editors/handsontableEditor
- xx-handsontable/editors/numericEditor
- xx-handsontable/editors/passwordEditor
- xx-handsontable/editors/registry
- xx-handsontable/editors/selectEditor
- xx-handsontable/editors/textEditor
- xx-handsontable/i18n
- xx-handsontable/i18n/languages
- xx-handsontable/i18n/languages/de-CH
- xx-handsontable/i18n/languages/de-DE
- xx-handsontable/i18n/languages/en-US
- xx-handsontable/i18n/languages/es-MX
- xx-handsontable/i18n/languages/fr-FR
- xx-handsontable/i18n/languages/it-IT
- xx-handsontable/i18n/languages/ja-JP
- xx-handsontable/i18n/languages/ko-KR
- xx-handsontable/i18n/languages/lv-LV
- xx-handsontable/i18n/languages/nb-NO
- xx-handsontable/i18n/languages/nl-NL
- xx-handsontable/i18n/languages/pl-PL
- xx-handsontable/i18n/languages/pt-BR
- xx-handsontable/i18n/languages/ru-RU
- xx-handsontable/i18n/languages/zh-CN
- xx-handsontable/i18n/languages/zh-TW
- xx-handsontable/i18n/registry
- xx-handsontable/languages
- xx-handsontable/languages/all
- xx-handsontable/languages/de-CH
- xx-handsontable/languages/de-DE
- xx-handsontable/languages/en-US
- xx-handsontable/languages/es-MX
- xx-handsontable/languages/fr-FR
- xx-handsontable/languages/it-IT
- xx-handsontable/languages/ja-JP
- xx-handsontable/languages/ko-KR
- xx-handsontable/languages/lv-LV
- xx-handsontable/languages/nb-NO
- xx-handsontable/languages/nl-NL
- xx-handsontable/languages/pl-PL
- xx-handsontable/languages/pt-BR
- xx-handsontable/languages/ru-RU
- xx-handsontable/languages/zh-CN
- xx-handsontable/languages/zh-TW
- xx-handsontable/plugins
- xx-handsontable/plugins/autoColumnSize
- xx-handsontable/plugins/autoRowSize
- xx-handsontable/plugins/autofill
- xx-handsontable/plugins/base
- xx-handsontable/plugins/bindRowsWithHeaders
- xx-handsontable/plugins/collapsibleColumns
- xx-handsontable/plugins/columnSorting
- xx-handsontable/plugins/columnSummary
- xx-handsontable/plugins/comments
- xx-handsontable/plugins/contextMenu
- xx-handsontable/plugins/copyPaste
- xx-handsontable/plugins/customBorders
- xx-handsontable/plugins/dragToScroll
- xx-handsontable/plugins/dropdownMenu
- xx-handsontable/plugins/exportFile
- xx-handsontable/plugins/filters
- xx-handsontable/plugins/formulas
- xx-handsontable/plugins/hiddenColumns
- xx-handsontable/plugins/hiddenRows
- xx-handsontable/plugins/manualColumnFreeze
- xx-handsontable/plugins/manualColumnMove
- xx-handsontable/plugins/manualColumnResize
- xx-handsontable/plugins/manualRowMove
- xx-handsontable/plugins/manualRowResize
- xx-handsontable/plugins/mergeCells
- xx-handsontable/plugins/multiColumnSorting
- xx-handsontable/plugins/multipleSelectionHandles
- xx-handsontable/plugins/nestedHeaders
- xx-handsontable/plugins/nestedRows
- xx-handsontable/plugins/persistentState
- xx-handsontable/plugins/registry
- xx-handsontable/plugins/search
- xx-handsontable/plugins/touchScroll
- xx-handsontable/plugins/trimRows
- xx-handsontable/plugins/undoRedo
- xx-handsontable/renderers
- xx-handsontable/renderers/autocompleteRenderer
- xx-handsontable/renderers/baseRenderer
- xx-handsontable/renderers/checkboxRenderer
- xx-handsontable/renderers/htmlRenderer
- xx-handsontable/renderers/numericRenderer
- xx-handsontable/renderers/passwordRenderer
- xx-handsontable/renderers/registry
- xx-handsontable/renderers/textRenderer
- xx-handsontable/validators
- xx-handsontable/validators/autocompleteValidator
- xx-handsontable/validators/dateValidator
- xx-handsontable/validators/numericValidator
- xx-handsontable/validators/registry
- xx-handsontable/validators/timeValidator
Readme
Data Grid for Vue 
Handsontable's wrapper for Vue combines data grid features with spreadsheet-like UX.
It provides data binding, data validation, filtering, sorting, and CRUD operations.
Features
The most popular features of Handsontable for Vue:
✓ Multiple column sorting
✓ Non-contiguous selection
✓ Filtering data
✓ Export to file
✓ Validating data
✓ Conditional formatting
✓ Merging cells
✓ Freezing rows/columns
✓ Moving rows/columns
✓ Resizing rows/columns
✓ Hiding rows/columns
✓ Context menu
✓ Comments
Documentation
Get Started
Install with npm
Run the following command in your terminal
npm install handsontable @handsontable/vueYou can load it directly from jsDelivr as well.
<script src="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@handsontable/vue/dist/vue-handsontable.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.css" rel="stylesheet">The component will be available as Handsontable.vue.HotTable.
Usage
Use this data grid as you would any other component in your application. Options can be set as HotTable props.
Styles
@import '~handsontable/dist/handsontable.full.css';Vue Component
<template>
<hot-table :data="data" colHeaders="true" rowHeaders="true" width="600" height="300"></hot-table>
</template>
<script>
import { HotTable } from '@handsontable/vue';
export default {
data: function() {
return {
data: [
['', 'Tesla', 'Mercedes', 'Toyota', 'Volvo'],
['2019', 10, 11, 12, 13],
['2020', 20, 11, 14, 13],
['2021', 30, 15, 12, 13]
],
};
},
components: {
HotTable
}
}
</script>handsontable收缩行的操作图标从行头切换到某列中
<template>
<HotTable ref="ht" :settings="hotSettings"></HotTable>
</template>
<script>
hotSettings: {
colMenuIndex: 0, //参数代表列的索引 0代表操作按钮在表格的第一列。
}
</script>View live demo
Support
We provide support for developers working with commercial version via contact form or at support@handsontable.com.
If you use a non-commercial version then please ask your tagged question on StackOverflow.
License
Handsontable is a commercial software with two licenses available:
- Free for non-commercial purposes such as teaching, academic research, and evaluation. Read it here.
- Commercial license with support and maintenance included. See pricing plans.
License key
If you use Handsontable for Vue in a project that supports your commercial activity, then you must purchase the license key at handsontable.com.
If you use the free for non-commercial license of Handsontable, then pass the phrase 'non-commercial-and-evaluation', as described in this documentation.
Proudly created and maintained by the Handsontable Team.
