handsontable 12.1.2 → 12.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/3rdparty/SheetClip/SheetClip.js +3 -32
- package/3rdparty/SheetClip/SheetClip.mjs +3 -23
- package/3rdparty/SheetClip/index.js +0 -2
- package/3rdparty/autoResize/autoResize.js +119 -145
- package/3rdparty/autoResize/autoResize.mjs +119 -143
- package/3rdparty/autoResize/index.js +0 -2
- package/3rdparty/walkontable/src/border.js +72 -174
- package/3rdparty/walkontable/src/border.mjs +74 -161
- package/3rdparty/walkontable/src/calculator/constants.js +0 -3
- package/3rdparty/walkontable/src/calculator/constants.mjs +0 -2
- package/3rdparty/walkontable/src/calculator/index.js +0 -10
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +26 -76
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +26 -69
- package/3rdparty/walkontable/src/calculator/viewportRows.js +20 -48
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +20 -41
- package/3rdparty/walkontable/src/cell/coords.js +13 -43
- package/3rdparty/walkontable/src/cell/coords.mjs +13 -38
- package/3rdparty/walkontable/src/cell/range.js +55 -130
- package/3rdparty/walkontable/src/cell/range.mjs +60 -126
- package/3rdparty/walkontable/src/core/_base.js +16 -74
- package/3rdparty/walkontable/src/core/_base.mjs +19 -70
- package/3rdparty/walkontable/src/core/clone.js +1 -40
- package/3rdparty/walkontable/src/core/clone.mjs +3 -30
- package/3rdparty/walkontable/src/core/core.js +3 -57
- package/3rdparty/walkontable/src/core/core.mjs +5 -41
- package/3rdparty/walkontable/src/event.js +31 -78
- package/3rdparty/walkontable/src/event.mjs +31 -65
- package/3rdparty/walkontable/src/facade/core.js +1 -17
- package/3rdparty/walkontable/src/facade/core.mjs +7 -20
- package/3rdparty/walkontable/src/filter/column.js +9 -18
- package/3rdparty/walkontable/src/filter/column.mjs +9 -17
- package/3rdparty/walkontable/src/filter/row.js +9 -18
- package/3rdparty/walkontable/src/filter/row.mjs +9 -17
- package/3rdparty/walkontable/src/index.js +0 -31
- package/3rdparty/walkontable/src/overlay/_base.js +24 -69
- package/3rdparty/walkontable/src/overlay/_base.mjs +31 -68
- package/3rdparty/walkontable/src/overlay/bottom.js +28 -99
- package/3rdparty/walkontable/src/overlay/bottom.mjs +30 -86
- package/3rdparty/walkontable/src/overlay/bottomInlineStartCorner.js +7 -53
- package/3rdparty/walkontable/src/overlay/bottomInlineStartCorner.mjs +9 -40
- package/3rdparty/walkontable/src/overlay/constants.js +0 -6
- package/3rdparty/walkontable/src/overlay/constants.mjs +0 -1
- package/3rdparty/walkontable/src/overlay/index.js +0 -17
- package/3rdparty/walkontable/src/overlay/inlineStart.js +21 -91
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +23 -78
- package/3rdparty/walkontable/src/overlay/top.js +27 -100
- package/3rdparty/walkontable/src/overlay/top.mjs +29 -87
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +4 -51
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +6 -38
- package/3rdparty/walkontable/src/overlays.js +58 -129
- package/3rdparty/walkontable/src/overlays.mjs +60 -121
- package/3rdparty/walkontable/src/renderer/_base.js +4 -20
- package/3rdparty/walkontable/src/renderer/_base.mjs +8 -22
- package/3rdparty/walkontable/src/renderer/cells.js +10 -54
- package/3rdparty/walkontable/src/renderer/cells.mjs +22 -52
- package/3rdparty/walkontable/src/renderer/colGroup.js +10 -47
- package/3rdparty/walkontable/src/renderer/colGroup.mjs +21 -46
- package/3rdparty/walkontable/src/renderer/columnHeaders.js +8 -50
- package/3rdparty/walkontable/src/renderer/columnHeaders.mjs +19 -49
- package/3rdparty/walkontable/src/renderer/index.js +13 -36
- package/3rdparty/walkontable/src/renderer/index.mjs +17 -27
- package/3rdparty/walkontable/src/renderer/rowHeaders.js +8 -50
- package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +20 -49
- package/3rdparty/walkontable/src/renderer/rows.js +3 -46
- package/3rdparty/walkontable/src/renderer/rows.mjs +3 -29
- package/3rdparty/walkontable/src/renderer/table.js +22 -49
- package/3rdparty/walkontable/src/renderer/table.mjs +22 -48
- package/3rdparty/walkontable/src/scroll.js +56 -86
- package/3rdparty/walkontable/src/scroll.mjs +58 -86
- package/3rdparty/walkontable/src/selection.js +20 -101
- package/3rdparty/walkontable/src/selection.mjs +22 -85
- package/3rdparty/walkontable/src/settings.js +9 -29
- package/3rdparty/walkontable/src/settings.mjs +9 -27
- package/3rdparty/walkontable/src/table/bottom.js +1 -35
- package/3rdparty/walkontable/src/table/bottom.mjs +6 -25
- package/3rdparty/walkontable/src/table/bottomInlineStartCorner.js +1 -35
- package/3rdparty/walkontable/src/table/bottomInlineStartCorner.mjs +7 -26
- package/3rdparty/walkontable/src/table/inlineStart.js +1 -35
- package/3rdparty/walkontable/src/table/inlineStart.mjs +3 -22
- package/3rdparty/walkontable/src/table/master.js +10 -55
- package/3rdparty/walkontable/src/table/master.mjs +15 -44
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +7 -28
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +7 -26
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +7 -28
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +7 -26
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +7 -22
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +7 -20
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +7 -23
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +7 -21
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +7 -22
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +7 -20
- package/3rdparty/walkontable/src/table/top.js +1 -35
- package/3rdparty/walkontable/src/table/top.mjs +6 -25
- package/3rdparty/walkontable/src/table/topInlineStartCorner.js +1 -35
- package/3rdparty/walkontable/src/table/topInlineStartCorner.mjs +7 -26
- package/3rdparty/walkontable/src/table.js +74 -238
- package/3rdparty/walkontable/src/table.mjs +84 -227
- package/3rdparty/walkontable/src/types.js +0 -5
- package/3rdparty/walkontable/src/types.mjs +0 -5
- package/3rdparty/walkontable/src/utils/column.js +9 -31
- package/3rdparty/walkontable/src/utils/column.mjs +13 -30
- package/3rdparty/walkontable/src/utils/nodesPool.js +3 -12
- package/3rdparty/walkontable/src/utils/nodesPool.mjs +3 -11
- package/3rdparty/walkontable/src/utils/orderView/constants.js +0 -3
- package/3rdparty/walkontable/src/utils/orderView/constants.mjs +0 -2
- package/3rdparty/walkontable/src/utils/orderView/index.js +0 -5
- package/3rdparty/walkontable/src/utils/orderView/sharedView.js +2 -33
- package/3rdparty/walkontable/src/utils/orderView/sharedView.mjs +6 -26
- package/3rdparty/walkontable/src/utils/orderView/view.js +14 -46
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +21 -50
- package/3rdparty/walkontable/src/utils/orderView/viewSize.js +3 -15
- package/3rdparty/walkontable/src/utils/orderView/viewSize.mjs +3 -14
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.js +8 -22
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.mjs +23 -34
- package/3rdparty/walkontable/src/utils/row.js +2 -13
- package/3rdparty/walkontable/src/utils/row.mjs +2 -12
- package/3rdparty/walkontable/src/viewport.js +38 -100
- package/3rdparty/walkontable/src/viewport.mjs +40 -99
- package/CHANGELOG.md +103 -5
- package/base.js +6 -17
- package/base.mjs +6 -12
- package/cellTypes/autocompleteType/autocompleteType.js +0 -4
- package/cellTypes/autocompleteType/index.js +0 -2
- package/cellTypes/checkboxType/checkboxType.js +0 -3
- package/cellTypes/checkboxType/index.js +0 -2
- package/cellTypes/dateType/dateType.js +0 -4
- package/cellTypes/dateType/index.js +0 -2
- package/cellTypes/dropdownType/dropdownType.js +0 -4
- package/cellTypes/dropdownType/index.js +0 -2
- package/cellTypes/handsontableType/handsontableType.js +0 -3
- package/cellTypes/handsontableType/index.js +0 -2
- package/cellTypes/index.js +0 -21
- package/cellTypes/index.mjs +3 -5
- package/cellTypes/numericType/index.js +0 -2
- package/cellTypes/numericType/numericType.js +0 -4
- package/cellTypes/passwordType/index.js +0 -2
- package/cellTypes/passwordType/passwordType.js +0 -3
- package/cellTypes/registry.js +10 -25
- package/cellTypes/registry.mjs +10 -20
- package/cellTypes/textType/index.js +0 -2
- package/cellTypes/textType/textType.js +0 -3
- package/cellTypes/timeType/index.js +0 -2
- package/cellTypes/timeType/timeType.js +0 -4
- package/core.d.ts +6 -4
- package/core.js +514 -974
- package/core.mjs +519 -921
- package/dataMap/dataMap.js +127 -212
- package/dataMap/dataMap.mjs +127 -188
- package/{dataSource.js → dataMap/dataSource.js} +18 -66
- package/{dataSource.mjs → dataMap/dataSource.mjs} +20 -60
- package/dataMap/index.js +0 -13
- package/dataMap/metaManager/index.js +21 -46
- package/dataMap/metaManager/index.mjs +47 -64
- package/dataMap/metaManager/lazyFactoryMap.js +23 -55
- package/dataMap/metaManager/lazyFactoryMap.mjs +23 -43
- package/dataMap/metaManager/metaLayers/cellMeta.js +16 -52
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +16 -37
- package/dataMap/metaManager/metaLayers/columnMeta.js +8 -22
- package/dataMap/metaManager/metaLayers/columnMeta.mjs +14 -25
- package/dataMap/metaManager/metaLayers/globalMeta.js +4 -19
- package/dataMap/metaManager/metaLayers/globalMeta.mjs +4 -15
- package/dataMap/metaManager/metaLayers/tableMeta.js +4 -15
- package/dataMap/metaManager/metaLayers/tableMeta.mjs +28 -37
- package/dataMap/metaManager/metaSchema.js +196 -257
- package/dataMap/metaManager/metaSchema.mjs +196 -248
- package/dataMap/metaManager/mods/dynamicCellMeta.js +6 -36
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +20 -39
- package/dataMap/metaManager/mods/extendMetaProperties.js +5 -28
- package/dataMap/metaManager/mods/extendMetaProperties.mjs +4 -18
- package/dataMap/metaManager/utils.js +11 -20
- package/dataMap/metaManager/utils.mjs +21 -23
- package/dataMap/replaceData.js +14 -35
- package/dataMap/replaceData.mjs +35 -45
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +64469 -93042
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +527 -284
- package/dist/handsontable.js +9616 -21414
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +3 -3
- package/dist/languages/all.js +0 -175
- package/dist/languages/ar-AR.js +0 -10
- package/dist/languages/cs-CZ.js +0 -10
- package/dist/languages/de-CH.js +0 -10
- package/dist/languages/de-DE.js +0 -10
- package/dist/languages/en-US.js +0 -10
- package/dist/languages/es-MX.js +0 -10
- package/dist/languages/fr-FR.js +0 -10
- package/dist/languages/it-IT.js +0 -10
- package/dist/languages/ja-JP.js +0 -10
- package/dist/languages/ko-KR.js +0 -10
- package/dist/languages/lv-LV.js +0 -10
- package/dist/languages/nb-NO.js +0 -10
- package/dist/languages/nl-NL.js +0 -10
- package/dist/languages/pl-PL.js +0 -10
- package/dist/languages/pt-BR.js +0 -10
- package/dist/languages/ru-RU.js +0 -10
- package/dist/languages/sr-SP.js +0 -10
- package/dist/languages/zh-CN.js +0 -10
- package/dist/languages/zh-TW.js +0 -10
- package/editorManager.js +89 -124
- package/editorManager.mjs +89 -104
- package/editors/autocompleteEditor/autocompleteEditor.js +26 -133
- package/editors/autocompleteEditor/autocompleteEditor.mjs +26 -104
- package/editors/autocompleteEditor/index.js +0 -2
- package/editors/baseEditor/baseEditor.js +45 -155
- package/editors/baseEditor/baseEditor.mjs +45 -129
- package/editors/baseEditor/index.js +0 -2
- package/editors/checkboxEditor/checkboxEditor.js +2 -33
- package/editors/checkboxEditor/checkboxEditor.mjs +2 -19
- package/editors/checkboxEditor/index.js +0 -2
- package/editors/dateEditor/dateEditor.js +36 -97
- package/editors/dateEditor/dateEditor.mjs +35 -74
- package/editors/dateEditor/index.js +0 -2
- package/editors/dropdownEditor/dropdownEditor.js +1 -41
- package/editors/dropdownEditor/dropdownEditor.mjs +1 -22
- package/editors/dropdownEditor/index.js +0 -2
- package/editors/handsontableEditor/handsontableEditor.js +13 -85
- package/editors/handsontableEditor/handsontableEditor.mjs +13 -66
- package/editors/handsontableEditor/index.js +0 -2
- package/editors/index.js +0 -25
- package/editors/index.mjs +3 -5
- package/editors/numericEditor/index.js +0 -2
- package/editors/numericEditor/numericEditor.js +1 -31
- package/editors/numericEditor/numericEditor.mjs +1 -18
- package/editors/passwordEditor/index.js +0 -2
- package/editors/passwordEditor/passwordEditor.js +1 -38
- package/editors/passwordEditor/passwordEditor.mjs +1 -22
- package/editors/registry.js +10 -36
- package/editors/registry.mjs +10 -28
- package/editors/selectEditor/index.js +0 -2
- package/editors/selectEditor/selectEditor.js +21 -73
- package/editors/selectEditor/selectEditor.mjs +21 -56
- package/editors/textEditor/caretPositioner.js +0 -12
- package/editors/textEditor/caretPositioner.mjs +10 -20
- package/editors/textEditor/index.js +0 -2
- package/editors/textEditor/textEditor.js +38 -137
- package/editors/textEditor/textEditor.mjs +38 -106
- package/editors/timeEditor/index.js +0 -2
- package/editors/timeEditor/timeEditor.js +1 -36
- package/editors/timeEditor/timeEditor.mjs +1 -21
- package/eventManager.js +20 -56
- package/eventManager.mjs +23 -56
- package/helpers/array.js +22 -88
- package/helpers/array.mjs +22 -58
- package/helpers/browser.js +25 -51
- package/helpers/browser.mjs +25 -32
- package/helpers/console.js +3 -13
- package/helpers/console.mjs +8 -16
- package/helpers/data.d.ts +0 -1
- package/helpers/data.js +10 -55
- package/helpers/data.mjs +10 -33
- package/helpers/date.js +2 -3
- package/helpers/date.mjs +2 -2
- package/helpers/dom/element.js +67 -259
- package/helpers/dom/element.mjs +74 -194
- package/helpers/dom/event.js +3 -7
- package/helpers/dom/event.mjs +3 -3
- package/helpers/feature.js +13 -47
- package/helpers/feature.mjs +13 -31
- package/helpers/function.js +14 -59
- package/helpers/function.mjs +20 -52
- package/helpers/mixed.js +9 -66
- package/helpers/mixed.mjs +15 -51
- package/helpers/number.js +4 -46
- package/helpers/number.mjs +4 -23
- package/helpers/object.js +15 -72
- package/helpers/object.mjs +21 -52
- package/helpers/string.js +6 -28
- package/helpers/string.mjs +12 -21
- package/helpers/templateLiteralTag.js +0 -6
- package/helpers/templateLiteralTag.mjs +7 -10
- package/helpers/unicode.js +17 -26
- package/helpers/unicode.mjs +17 -15
- package/helpers/wrappers/jquery.js +4 -14
- package/helpers/wrappers/jquery.mjs +4 -13
- package/i18n/constants.js +1 -3
- package/i18n/constants.mjs +1 -1
- package/i18n/index.js +0 -7
- package/i18n/languages/ar-AR.js +0 -16
- package/i18n/languages/ar-AR.mjs +1 -4
- package/i18n/languages/cs-CZ.js +0 -16
- package/i18n/languages/cs-CZ.mjs +1 -4
- package/i18n/languages/de-CH.js +0 -16
- package/i18n/languages/de-CH.mjs +1 -4
- package/i18n/languages/de-DE.js +0 -16
- package/i18n/languages/de-DE.mjs +1 -4
- package/i18n/languages/en-US.js +0 -16
- package/i18n/languages/en-US.mjs +1 -4
- package/i18n/languages/es-MX.js +0 -16
- package/i18n/languages/es-MX.mjs +1 -4
- package/i18n/languages/fr-FR.js +0 -16
- package/i18n/languages/fr-FR.mjs +1 -4
- package/i18n/languages/index.js +0 -39
- package/i18n/languages/it-IT.js +0 -16
- package/i18n/languages/it-IT.mjs +1 -4
- package/i18n/languages/ja-JP.js +0 -16
- package/i18n/languages/ja-JP.mjs +1 -4
- package/i18n/languages/ko-KR.js +0 -16
- package/i18n/languages/ko-KR.mjs +1 -4
- package/i18n/languages/lv-LV.js +0 -16
- package/i18n/languages/lv-LV.mjs +1 -4
- package/i18n/languages/nb-NO.js +0 -16
- package/i18n/languages/nb-NO.mjs +1 -4
- package/i18n/languages/nl-NL.js +0 -16
- package/i18n/languages/nl-NL.mjs +1 -4
- package/i18n/languages/pl-PL.js +0 -16
- package/i18n/languages/pl-PL.mjs +1 -4
- package/i18n/languages/pt-BR.js +0 -16
- package/i18n/languages/pt-BR.mjs +1 -4
- package/i18n/languages/ru-RU.js +0 -16
- package/i18n/languages/ru-RU.mjs +1 -4
- package/i18n/languages/sr-SP.js +0 -16
- package/i18n/languages/sr-SP.mjs +1 -4
- package/i18n/languages/zh-CN.js +0 -16
- package/i18n/languages/zh-CN.mjs +1 -4
- package/i18n/languages/zh-TW.js +0 -16
- package/i18n/languages/zh-TW.mjs +1 -4
- package/i18n/phraseFormatters/index.js +4 -11
- package/i18n/phraseFormatters/index.mjs +4 -6
- package/i18n/phraseFormatters/pluralize.js +0 -5
- package/i18n/phraseFormatters/pluralize.mjs +0 -3
- package/i18n/phraseFormatters/substituteVariables.js +0 -4
- package/i18n/phraseFormatters/substituteVariables.mjs +8 -11
- package/i18n/registry.js +18 -59
- package/i18n/registry.mjs +18 -30
- package/i18n/utils.js +4 -22
- package/i18n/utils.mjs +13 -21
- package/index.js +19 -56
- package/index.mjs +19 -15
- package/languages/all.js +0 -175
- package/languages/ar-AR.js +0 -10
- package/languages/ar-AR.mjs +1 -4
- package/languages/cs-CZ.js +0 -10
- package/languages/cs-CZ.mjs +1 -4
- package/languages/de-CH.js +0 -10
- package/languages/de-CH.mjs +1 -4
- package/languages/de-DE.js +0 -10
- package/languages/de-DE.mjs +1 -4
- package/languages/en-US.js +0 -10
- package/languages/en-US.mjs +1 -4
- package/languages/es-MX.js +0 -10
- package/languages/es-MX.mjs +1 -4
- package/languages/fr-FR.js +0 -10
- package/languages/fr-FR.mjs +1 -4
- package/languages/index.js +0 -175
- package/languages/it-IT.js +0 -10
- package/languages/it-IT.mjs +1 -4
- package/languages/ja-JP.js +0 -10
- package/languages/ja-JP.mjs +1 -4
- package/languages/ko-KR.js +0 -10
- package/languages/ko-KR.mjs +1 -4
- package/languages/lv-LV.js +0 -10
- package/languages/lv-LV.mjs +1 -4
- package/languages/nb-NO.js +0 -10
- package/languages/nb-NO.mjs +1 -4
- package/languages/nl-NL.js +0 -10
- package/languages/nl-NL.mjs +1 -4
- package/languages/pl-PL.js +0 -10
- package/languages/pl-PL.mjs +1 -4
- package/languages/pt-BR.js +0 -10
- package/languages/pt-BR.mjs +1 -4
- package/languages/ru-RU.js +0 -10
- package/languages/ru-RU.mjs +1 -4
- package/languages/sr-SP.js +0 -10
- package/languages/sr-SP.mjs +1 -4
- package/languages/zh-CN.js +0 -10
- package/languages/zh-CN.mjs +1 -4
- package/languages/zh-TW.js +0 -10
- package/languages/zh-TW.mjs +1 -4
- package/mixins/hooksRefRegisterer.js +4 -18
- package/mixins/hooksRefRegisterer.mjs +4 -15
- package/mixins/localHooks.js +7 -17
- package/mixins/localHooks.mjs +7 -14
- package/package.json +1 -1
- package/pluginHooks.d.ts +3 -4
- package/pluginHooks.js +288 -110
- package/pluginHooks.mjs +287 -97
- package/plugins/autoColumnSize/autoColumnSize.js +74 -172
- package/plugins/autoColumnSize/autoColumnSize.mjs +74 -137
- package/plugins/autoColumnSize/index.js +0 -2
- package/plugins/autoRowSize/autoRowSize.js +73 -153
- package/plugins/autoRowSize/autoRowSize.mjs +73 -124
- package/plugins/autoRowSize/index.js +0 -2
- package/plugins/autofill/autofill.js +46 -163
- package/plugins/autofill/autofill.mjs +46 -131
- package/plugins/autofill/index.js +0 -2
- package/plugins/autofill/utils.js +4 -26
- package/plugins/autofill/utils.mjs +4 -18
- package/plugins/base/base.js +21 -92
- package/plugins/base/base.mjs +21 -63
- package/plugins/base/index.js +0 -2
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +19 -52
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +19 -33
- package/plugins/bindRowsWithHeaders/index.js +0 -2
- package/plugins/bindRowsWithHeaders/maps/looseBindsMap.js +5 -41
- package/plugins/bindRowsWithHeaders/maps/looseBindsMap.mjs +5 -29
- package/plugins/bindRowsWithHeaders/maps/strictBindsMap.js +6 -53
- package/plugins/bindRowsWithHeaders/maps/strictBindsMap.mjs +6 -37
- package/plugins/collapsibleColumns/collapsibleColumns.js +96 -188
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +97 -158
- package/plugins/collapsibleColumns/index.js +0 -2
- package/plugins/columnSorting/columnSorting.js +50 -188
- package/plugins/columnSorting/columnSorting.mjs +50 -143
- package/plugins/columnSorting/columnStatesManager.js +15 -71
- package/plugins/columnSorting/columnStatesManager.mjs +15 -48
- package/plugins/columnSorting/domHelpers.js +2 -18
- package/plugins/columnSorting/domHelpers.mjs +2 -7
- package/plugins/columnSorting/index.js +0 -2
- package/plugins/columnSorting/rootComparator.js +5 -24
- package/plugins/columnSorting/rootComparator.mjs +12 -21
- package/plugins/columnSorting/sortFunction/checkbox.js +8 -16
- package/plugins/columnSorting/sortFunction/checkbox.mjs +16 -21
- package/plugins/columnSorting/sortFunction/date.js +2 -19
- package/plugins/columnSorting/sortFunction/date.mjs +10 -23
- package/plugins/columnSorting/sortFunction/default.js +2 -17
- package/plugins/columnSorting/sortFunction/default.mjs +10 -23
- package/plugins/columnSorting/sortFunction/numeric.js +2 -11
- package/plugins/columnSorting/sortFunction/numeric.mjs +10 -17
- package/plugins/columnSorting/sortService/engine.js +3 -13
- package/plugins/columnSorting/sortService/engine.mjs +3 -5
- package/plugins/columnSorting/sortService/index.js +0 -5
- package/plugins/columnSorting/sortService/registry.js +6 -18
- package/plugins/columnSorting/sortService/registry.mjs +6 -10
- package/plugins/columnSorting/utils.js +9 -34
- package/plugins/columnSorting/utils.mjs +9 -15
- package/plugins/columnSummary/columnSummary.js +66 -126
- package/plugins/columnSummary/columnSummary.mjs +66 -101
- package/plugins/columnSummary/endpoints.js +21 -98
- package/plugins/columnSummary/endpoints.mjs +26 -99
- package/plugins/columnSummary/index.js +0 -2
- package/plugins/columnSummary/utils.js +13 -0
- package/plugins/columnSummary/utils.mjs +9 -0
- package/plugins/comments/commentEditor.js +16 -28
- package/plugins/comments/commentEditor.mjs +21 -32
- package/plugins/comments/comments.js +92 -175
- package/plugins/comments/comments.mjs +92 -149
- package/plugins/comments/displaySwitch.js +6 -23
- package/plugins/comments/displaySwitch.mjs +6 -18
- package/plugins/comments/index.js +0 -2
- package/plugins/contextMenu/commandExecutor.js +9 -40
- package/plugins/contextMenu/commandExecutor.mjs +14 -41
- package/plugins/contextMenu/contextMenu.js +26 -105
- package/plugins/contextMenu/contextMenu.mjs +26 -75
- package/plugins/contextMenu/cursor.js +6 -20
- package/plugins/contextMenu/cursor.mjs +11 -24
- package/plugins/contextMenu/index.js +0 -2
- package/plugins/contextMenu/itemsFactory.js +14 -43
- package/plugins/contextMenu/itemsFactory.mjs +19 -44
- package/plugins/contextMenu/menu.js +61 -177
- package/plugins/contextMenu/menu.mjs +61 -149
- package/plugins/contextMenu/predefinedItems/alignment.js +1 -55
- package/plugins/contextMenu/predefinedItems/alignment.mjs +1 -37
- package/plugins/contextMenu/predefinedItems/clearColumn.js +1 -20
- package/plugins/contextMenu/predefinedItems/clearColumn.mjs +1 -4
- package/plugins/contextMenu/predefinedItems/columnLeft.js +6 -43
- package/plugins/contextMenu/predefinedItems/columnLeft.mjs +6 -26
- package/plugins/contextMenu/predefinedItems/columnRight.js +4 -42
- package/plugins/contextMenu/predefinedItems/columnRight.mjs +4 -25
- package/plugins/contextMenu/predefinedItems/noItems.js +1 -4
- package/plugins/contextMenu/predefinedItems/noItems.mjs +1 -1
- package/plugins/contextMenu/predefinedItems/readOnly.js +1 -25
- package/plugins/contextMenu/predefinedItems/readOnly.mjs +1 -8
- package/plugins/contextMenu/predefinedItems/redo.js +1 -16
- package/plugins/contextMenu/predefinedItems/redo.mjs +1 -1
- package/plugins/contextMenu/predefinedItems/removeColumn.js +3 -38
- package/plugins/contextMenu/predefinedItems/removeColumn.mjs +3 -18
- package/plugins/contextMenu/predefinedItems/removeRow.js +3 -37
- package/plugins/contextMenu/predefinedItems/removeRow.mjs +3 -17
- package/plugins/contextMenu/predefinedItems/rowAbove.js +6 -35
- package/plugins/contextMenu/predefinedItems/rowAbove.mjs +6 -19
- package/plugins/contextMenu/predefinedItems/rowBelow.js +4 -42
- package/plugins/contextMenu/predefinedItems/rowBelow.mjs +4 -25
- package/plugins/contextMenu/predefinedItems/separator.js +1 -2
- package/plugins/contextMenu/predefinedItems/separator.mjs +1 -1
- package/plugins/contextMenu/predefinedItems/undo.js +1 -16
- package/plugins/contextMenu/predefinedItems/undo.mjs +1 -1
- package/plugins/contextMenu/predefinedItems.js +2 -48
- package/plugins/contextMenu/predefinedItems.mjs +2 -7
- package/plugins/contextMenu/utils.js +17 -57
- package/plugins/contextMenu/utils.mjs +21 -39
- package/plugins/copyPaste/clipboardData.js +1 -10
- package/plugins/copyPaste/clipboardData.mjs +1 -9
- package/plugins/copyPaste/contextMenuItem/copy.js +2 -17
- package/plugins/copyPaste/contextMenuItem/copy.mjs +6 -9
- package/plugins/copyPaste/contextMenuItem/cut.js +2 -17
- package/plugins/copyPaste/contextMenuItem/cut.mjs +6 -9
- package/plugins/copyPaste/copyPaste.js +53 -185
- package/plugins/copyPaste/copyPaste.mjs +53 -144
- package/plugins/copyPaste/focusableElement.js +12 -56
- package/plugins/copyPaste/focusableElement.mjs +15 -49
- package/plugins/copyPaste/index.js +0 -2
- package/plugins/copyPaste/pasteEvent.js +1 -10
- package/plugins/copyPaste/pasteEvent.mjs +3 -10
- package/plugins/customBorders/contextMenuItem/bottom.js +0 -17
- package/plugins/customBorders/contextMenuItem/bottom.mjs +4 -8
- package/plugins/customBorders/contextMenuItem/index.js +0 -11
- package/plugins/customBorders/contextMenuItem/left.js +0 -17
- package/plugins/customBorders/contextMenuItem/left.mjs +4 -8
- package/plugins/customBorders/contextMenuItem/noBorders.js +0 -15
- package/plugins/customBorders/contextMenuItem/noBorders.mjs +4 -6
- package/plugins/customBorders/contextMenuItem/right.js +0 -17
- package/plugins/customBorders/contextMenuItem/right.mjs +4 -8
- package/plugins/customBorders/contextMenuItem/top.js +0 -17
- package/plugins/customBorders/contextMenuItem/top.mjs +4 -8
- package/plugins/customBorders/customBorders.js +52 -181
- package/plugins/customBorders/customBorders.mjs +52 -147
- package/plugins/customBorders/index.js +0 -2
- package/plugins/customBorders/utils.js +13 -52
- package/plugins/customBorders/utils.mjs +20 -39
- package/plugins/dragToScroll/dragToScroll.js +17 -74
- package/plugins/dragToScroll/dragToScroll.mjs +17 -55
- package/plugins/dragToScroll/index.js +0 -2
- package/plugins/dropdownMenu/dropdownMenu.js +47 -126
- package/plugins/dropdownMenu/dropdownMenu.mjs +47 -95
- package/plugins/dropdownMenu/index.js +0 -2
- package/plugins/exportFile/dataProvider.js +24 -69
- package/plugins/exportFile/dataProvider.mjs +26 -60
- package/plugins/exportFile/exportFile.js +48 -58
- package/plugins/exportFile/exportFile.mjs +48 -36
- package/plugins/exportFile/index.js +0 -2
- package/plugins/exportFile/typeFactory.js +1 -11
- package/plugins/exportFile/typeFactory.mjs +1 -4
- package/plugins/exportFile/types/_base.js +2 -16
- package/plugins/exportFile/types/_base.mjs +4 -16
- package/plugins/exportFile/types/csv.js +2 -50
- package/plugins/exportFile/types/csv.mjs +2 -29
- package/plugins/filters/component/_base.js +12 -32
- package/plugins/filters/component/_base.mjs +15 -30
- package/plugins/filters/component/actionBar.js +6 -55
- package/plugins/filters/component/actionBar.mjs +9 -38
- package/plugins/filters/component/condition.js +25 -122
- package/plugins/filters/component/condition.mjs +24 -88
- package/plugins/filters/component/operators.js +10 -68
- package/plugins/filters/component/operators.mjs +10 -45
- package/plugins/filters/component/value.js +25 -99
- package/plugins/filters/component/value.mjs +28 -72
- package/plugins/filters/condition/beginsWith.js +2 -32
- package/plugins/filters/condition/beginsWith.mjs +2 -10
- package/plugins/filters/condition/between.js +3 -37
- package/plugins/filters/condition/between.mjs +3 -15
- package/plugins/filters/condition/byValue.js +3 -27
- package/plugins/filters/condition/byValue.mjs +3 -12
- package/plugins/filters/condition/contains.js +2 -32
- package/plugins/filters/condition/contains.mjs +2 -10
- package/plugins/filters/condition/date/after.js +2 -34
- package/plugins/filters/condition/date/after.mjs +2 -12
- package/plugins/filters/condition/date/before.js +2 -34
- package/plugins/filters/condition/date/before.mjs +2 -12
- package/plugins/filters/condition/date/today.js +1 -22
- package/plugins/filters/condition/date/today.mjs +1 -3
- package/plugins/filters/condition/date/tomorrow.js +1 -22
- package/plugins/filters/condition/date/tomorrow.mjs +1 -3
- package/plugins/filters/condition/date/yesterday.js +1 -22
- package/plugins/filters/condition/date/yesterday.mjs +1 -3
- package/plugins/filters/condition/empty.js +1 -19
- package/plugins/filters/condition/empty.mjs +1 -1
- package/plugins/filters/condition/endsWith.js +2 -32
- package/plugins/filters/condition/endsWith.mjs +2 -10
- package/plugins/filters/condition/equal.js +2 -31
- package/plugins/filters/condition/equal.mjs +2 -10
- package/plugins/filters/condition/false.js +1 -5
- package/plugins/filters/condition/false.mjs +1 -1
- package/plugins/filters/condition/greaterThan.js +2 -32
- package/plugins/filters/condition/greaterThan.mjs +2 -12
- package/plugins/filters/condition/greaterThanOrEqual.js +2 -32
- package/plugins/filters/condition/greaterThanOrEqual.mjs +2 -12
- package/plugins/filters/condition/lessThan.js +2 -32
- package/plugins/filters/condition/lessThan.mjs +2 -12
- package/plugins/filters/condition/lessThanOrEqual.js +2 -32
- package/plugins/filters/condition/lessThanOrEqual.mjs +2 -12
- package/plugins/filters/condition/none.js +1 -18
- package/plugins/filters/condition/none.mjs +1 -1
- package/plugins/filters/condition/notBetween.js +1 -19
- package/plugins/filters/condition/notBetween.mjs +1 -1
- package/plugins/filters/condition/notContains.js +1 -19
- package/plugins/filters/condition/notContains.mjs +1 -1
- package/plugins/filters/condition/notEmpty.js +1 -19
- package/plugins/filters/condition/notEmpty.mjs +1 -1
- package/plugins/filters/condition/notEqual.js +1 -19
- package/plugins/filters/condition/notEqual.mjs +1 -1
- package/plugins/filters/condition/true.js +1 -5
- package/plugins/filters/condition/true.mjs +1 -1
- package/plugins/filters/conditionCollection.js +21 -80
- package/plugins/filters/conditionCollection.mjs +21 -57
- package/plugins/filters/conditionRegisterer.js +5 -14
- package/plugins/filters/conditionRegisterer.mjs +5 -9
- package/plugins/filters/conditionUpdateObserver.js +17 -57
- package/plugins/filters/conditionUpdateObserver.mjs +25 -53
- package/plugins/filters/constants.js +1 -66
- package/plugins/filters/constants.mjs +1 -8
- package/plugins/filters/dataFilter.js +4 -21
- package/plugins/filters/dataFilter.mjs +7 -23
- package/plugins/filters/filters.d.ts +1 -1
- package/plugins/filters/filters.js +147 -272
- package/plugins/filters/filters.mjs +148 -228
- package/plugins/filters/index.js +0 -2
- package/plugins/filters/logicalOperationRegisterer.js +3 -9
- package/plugins/filters/logicalOperationRegisterer.mjs +3 -4
- package/plugins/filters/logicalOperations/conjunction.js +2 -19
- package/plugins/filters/logicalOperations/conjunction.mjs +2 -2
- package/plugins/filters/logicalOperations/disjunction.js +2 -19
- package/plugins/filters/logicalOperations/disjunction.mjs +2 -2
- package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.js +2 -21
- package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.mjs +2 -3
- package/plugins/filters/ui/_base.js +12 -55
- package/plugins/filters/ui/_base.mjs +12 -35
- package/plugins/filters/ui/input.js +7 -52
- package/plugins/filters/ui/input.mjs +7 -34
- package/plugins/filters/ui/link.js +3 -43
- package/plugins/filters/ui/link.mjs +3 -25
- package/plugins/filters/ui/multipleSelect.js +26 -120
- package/plugins/filters/ui/multipleSelect.mjs +20 -76
- package/plugins/filters/ui/radioInput.js +6 -47
- package/plugins/filters/ui/radioInput.mjs +6 -30
- package/plugins/filters/ui/select.js +14 -76
- package/plugins/filters/ui/select.mjs +14 -52
- package/plugins/filters/utils.js +6 -39
- package/plugins/filters/utils.mjs +6 -23
- package/plugins/formulas/engine/register.js +24 -74
- package/plugins/formulas/engine/register.mjs +29 -51
- package/plugins/formulas/engine/settings.js +4 -24
- package/plugins/formulas/engine/settings.mjs +4 -12
- package/plugins/formulas/formulas.js +103 -295
- package/plugins/formulas/formulas.mjs +104 -248
- package/plugins/formulas/index.js +0 -2
- package/plugins/formulas/utils.js +1 -3
- package/plugins/formulas/utils.mjs +1 -1
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +4 -38
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +8 -25
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +17 -45
- package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +21 -29
- package/plugins/hiddenColumns/hiddenColumns.js +72 -153
- package/plugins/hiddenColumns/hiddenColumns.mjs +72 -110
- package/plugins/hiddenColumns/index.js +0 -2
- package/plugins/hiddenRows/contextMenuItem/hideRow.js +4 -38
- package/plugins/hiddenRows/contextMenuItem/hideRow.mjs +8 -25
- package/plugins/hiddenRows/contextMenuItem/showRow.js +17 -45
- package/plugins/hiddenRows/contextMenuItem/showRow.mjs +21 -29
- package/plugins/hiddenRows/hiddenRows.js +70 -152
- package/plugins/hiddenRows/hiddenRows.mjs +70 -109
- package/plugins/hiddenRows/index.js +0 -2
- package/plugins/index.js +0 -71
- package/plugins/index.mjs +3 -5
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -28
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +5 -17
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -28
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +5 -17
- package/plugins/manualColumnFreeze/index.js +0 -2
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +21 -78
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +21 -54
- package/plugins/manualColumnMove/index.js +0 -2
- package/plugins/manualColumnMove/manualColumnMove.js +45 -134
- package/plugins/manualColumnMove/manualColumnMove.mjs +45 -106
- package/plugins/manualColumnMove/ui/_base.js +12 -30
- package/plugins/manualColumnMove/ui/_base.mjs +12 -27
- package/plugins/manualColumnMove/ui/backlight.js +1 -37
- package/plugins/manualColumnMove/ui/backlight.mjs +1 -22
- package/plugins/manualColumnMove/ui/guideline.js +1 -37
- package/plugins/manualColumnMove/ui/guideline.mjs +1 -22
- package/plugins/manualColumnResize/index.js +0 -2
- package/plugins/manualColumnResize/manualColumnResize.js +44 -143
- package/plugins/manualColumnResize/manualColumnResize.mjs +43 -118
- package/plugins/manualRowMove/index.js +0 -2
- package/plugins/manualRowMove/manualRowMove.js +45 -137
- package/plugins/manualRowMove/manualRowMove.mjs +45 -109
- package/plugins/manualRowMove/ui/_base.js +12 -27
- package/plugins/manualRowMove/ui/_base.mjs +12 -26
- package/plugins/manualRowMove/ui/backlight.js +1 -37
- package/plugins/manualRowMove/ui/backlight.mjs +1 -22
- package/plugins/manualRowMove/ui/guideline.js +1 -37
- package/plugins/manualRowMove/ui/guideline.mjs +1 -22
- package/plugins/manualRowResize/index.js +0 -2
- package/plugins/manualRowResize/manualRowResize.js +42 -138
- package/plugins/manualRowResize/manualRowResize.mjs +41 -112
- package/plugins/mergeCells/calculations/autofill.js +39 -130
- package/plugins/mergeCells/calculations/autofill.mjs +44 -122
- package/plugins/mergeCells/calculations/selection.js +9 -40
- package/plugins/mergeCells/calculations/selection.mjs +9 -37
- package/plugins/mergeCells/cellCoords.js +30 -51
- package/plugins/mergeCells/cellCoords.mjs +35 -54
- package/plugins/mergeCells/cellsCollection.js +13 -84
- package/plugins/mergeCells/cellsCollection.mjs +18 -69
- package/plugins/mergeCells/contextMenuItem/toggleMerge.js +0 -22
- package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +4 -11
- package/plugins/mergeCells/index.js +0 -2
- package/plugins/mergeCells/mergeCells.js +130 -333
- package/plugins/mergeCells/mergeCells.mjs +130 -292
- package/plugins/mergeCells/utils.js +0 -3
- package/plugins/mergeCells/utils.mjs +0 -1
- package/plugins/multiColumnSorting/domHelpers.js +3 -15
- package/plugins/multiColumnSorting/domHelpers.mjs +3 -7
- package/plugins/multiColumnSorting/index.js +0 -2
- package/plugins/multiColumnSorting/multiColumnSorting.js +14 -66
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +14 -44
- package/plugins/multiColumnSorting/rootComparator.js +2 -26
- package/plugins/multiColumnSorting/rootComparator.mjs +9 -23
- package/plugins/multiColumnSorting/utils.js +0 -7
- package/plugins/multiColumnSorting/utils.mjs +3 -8
- package/plugins/multipleSelectionHandles/index.js +0 -2
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +6 -109
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +6 -87
- package/plugins/nestedHeaders/index.js +0 -2
- package/plugins/nestedHeaders/nestedHeaders.js +79 -200
- package/plugins/nestedHeaders/nestedHeaders.mjs +80 -173
- package/plugins/nestedHeaders/stateManager/headersTree.js +16 -93
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +16 -73
- package/plugins/nestedHeaders/stateManager/index.js +24 -107
- package/plugins/nestedHeaders/stateManager/index.mjs +51 -115
- package/plugins/nestedHeaders/stateManager/matrixGenerator.js +7 -25
- package/plugins/nestedHeaders/stateManager/matrixGenerator.mjs +38 -51
- package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.js +12 -27
- package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +29 -35
- package/plugins/nestedHeaders/stateManager/nodeModifiers/expand.js +10 -25
- package/plugins/nestedHeaders/stateManager/nodeModifiers/expand.mjs +26 -32
- package/plugins/nestedHeaders/stateManager/nodeModifiers/hideColumn.js +3 -19
- package/plugins/nestedHeaders/stateManager/nodeModifiers/hideColumn.mjs +9 -20
- package/plugins/nestedHeaders/stateManager/nodeModifiers/index.js +2 -12
- package/plugins/nestedHeaders/stateManager/nodeModifiers/index.mjs +2 -5
- package/plugins/nestedHeaders/stateManager/nodeModifiers/showColumn.js +3 -22
- package/plugins/nestedHeaders/stateManager/nodeModifiers/showColumn.mjs +9 -21
- package/plugins/nestedHeaders/stateManager/nodeModifiers/utils/tree.js +3 -10
- package/plugins/nestedHeaders/stateManager/nodeModifiers/utils/tree.mjs +3 -7
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +5 -36
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.mjs +44 -61
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +16 -78
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +21 -68
- package/plugins/nestedHeaders/stateManager/utils.js +19 -22
- package/plugins/nestedHeaders/stateManager/utils.mjs +19 -20
- package/plugins/nestedHeaders/utils/ghostTable.js +9 -37
- package/plugins/nestedHeaders/utils/ghostTable.mjs +16 -43
- package/plugins/nestedRows/data/dataManager.js +40 -161
- package/plugins/nestedRows/data/dataManager.mjs +44 -148
- package/plugins/nestedRows/index.js +0 -2
- package/plugins/nestedRows/nestedRows.js +41 -119
- package/plugins/nestedRows/nestedRows.mjs +41 -86
- package/plugins/nestedRows/ui/_base.js +1 -9
- package/plugins/nestedRows/ui/_base.mjs +1 -8
- package/plugins/nestedRows/ui/collapsing.js +28 -134
- package/plugins/nestedRows/ui/collapsing.mjs +34 -118
- package/plugins/nestedRows/ui/contextMenu.js +2 -53
- package/plugins/nestedRows/ui/contextMenu.mjs +2 -32
- package/plugins/nestedRows/ui/headers.js +5 -50
- package/plugins/nestedRows/ui/headers.mjs +11 -41
- package/plugins/nestedRows/utils/rowMoveController.js +28 -78
- package/plugins/nestedRows/utils/rowMoveController.mjs +33 -66
- package/plugins/persistentState/index.js +0 -2
- package/plugins/persistentState/persistentState.js +10 -58
- package/plugins/persistentState/persistentState.mjs +10 -37
- package/plugins/persistentState/storage.js +9 -25
- package/plugins/persistentState/storage.mjs +12 -26
- package/plugins/registry.js +7 -51
- package/plugins/registry.mjs +8 -34
- package/plugins/search/index.js +0 -2
- package/plugins/search/search.js +16 -98
- package/plugins/search/search.mjs +16 -68
- package/plugins/touchScroll/index.js +0 -2
- package/plugins/touchScroll/touchScroll.js +15 -76
- package/plugins/touchScroll/touchScroll.mjs +15 -58
- package/plugins/trimRows/index.js +0 -2
- package/plugins/trimRows/trimRows.js +62 -88
- package/plugins/trimRows/trimRows.mjs +62 -65
- package/plugins/undoRedo/index.js +0 -14
- package/plugins/undoRedo/undoRedo.js +48 -218
- package/plugins/undoRedo/undoRedo.mjs +48 -188
- package/registry.js +0 -11
- package/registry.mjs +2 -4
- package/renderers/autocompleteRenderer/autocompleteRenderer.js +5 -14
- package/renderers/autocompleteRenderer/autocompleteRenderer.mjs +5 -6
- package/renderers/autocompleteRenderer/index.js +0 -2
- package/renderers/baseRenderer/baseRenderer.js +2 -11
- package/renderers/baseRenderer/baseRenderer.mjs +2 -9
- package/renderers/baseRenderer/index.js +0 -2
- package/renderers/checkboxRenderer/checkboxRenderer.js +22 -103
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +22 -81
- package/renderers/checkboxRenderer/index.js +0 -2
- package/renderers/htmlRenderer/htmlRenderer.js +1 -7
- package/renderers/htmlRenderer/htmlRenderer.mjs +1 -1
- package/renderers/htmlRenderer/index.js +0 -2
- package/renderers/index.js +0 -19
- package/renderers/index.mjs +3 -5
- package/renderers/numericRenderer/index.js +0 -2
- package/renderers/numericRenderer/numericRenderer.js +1 -23
- package/renderers/numericRenderer/numericRenderer.mjs +1 -10
- package/renderers/passwordRenderer/index.js +0 -2
- package/renderers/passwordRenderer/passwordRenderer.js +1 -8
- package/renderers/passwordRenderer/passwordRenderer.mjs +1 -1
- package/renderers/registry.js +7 -16
- package/renderers/registry.mjs +7 -14
- package/renderers/textRenderer/index.js +0 -2
- package/renderers/textRenderer/textRenderer.js +2 -14
- package/renderers/textRenderer/textRenderer.mjs +2 -6
- package/renderers/timeRenderer/index.js +0 -2
- package/renderers/timeRenderer/timeRenderer.js +1 -6
- package/renderers/timeRenderer/timeRenderer.mjs +1 -1
- package/selection/highlight/highlight.js +17 -73
- package/selection/highlight/highlight.mjs +31 -64
- package/selection/highlight/types/activeHeader.js +1 -21
- package/selection/highlight/types/activeHeader.mjs +6 -16
- package/selection/highlight/types/area.js +2 -22
- package/selection/highlight/types/area.mjs +10 -20
- package/selection/highlight/types/cell.js +1 -21
- package/selection/highlight/types/cell.mjs +9 -19
- package/selection/highlight/types/customSelection.js +2 -22
- package/selection/highlight/types/customSelection.mjs +11 -21
- package/selection/highlight/types/fill.js +2 -17
- package/selection/highlight/types/fill.mjs +9 -14
- package/selection/highlight/types/header.js +3 -23
- package/selection/highlight/types/header.mjs +13 -23
- package/selection/highlight/types/index.js +3 -24
- package/selection/highlight/types/index.mjs +3 -10
- package/selection/highlight/visualSelection.js +24 -74
- package/selection/highlight/visualSelection.mjs +24 -62
- package/selection/index.js +0 -14
- package/selection/mouseEventHandler.js +19 -30
- package/selection/mouseEventHandler.mjs +32 -36
- package/selection/range.js +11 -31
- package/selection/range.mjs +11 -22
- package/selection/selection.js +62 -157
- package/selection/selection.mjs +65 -132
- package/selection/transformation.js +10 -40
- package/selection/transformation.mjs +18 -45
- package/selection/utils.js +22 -70
- package/selection/utils.mjs +22 -47
- package/shortcuts/context.js +23 -78
- package/shortcuts/context.mjs +23 -55
- package/shortcuts/index.js +0 -2
- package/shortcuts/keyObserver.js +4 -17
- package/shortcuts/keyObserver.mjs +4 -12
- package/shortcuts/manager.js +16 -36
- package/shortcuts/manager.mjs +16 -33
- package/shortcuts/recorder.js +20 -47
- package/shortcuts/recorder.mjs +20 -39
- package/shortcuts/utils.js +5 -24
- package/shortcuts/utils.mjs +5 -8
- package/tableView.js +100 -270
- package/tableView.mjs +100 -248
- package/translations/changesObservable/observable.js +5 -54
- package/translations/changesObservable/observable.mjs +12 -51
- package/translations/changesObservable/observer.js +4 -32
- package/translations/changesObservable/observer.mjs +9 -29
- package/translations/changesObservable/utils.js +1 -5
- package/translations/changesObservable/utils.mjs +1 -4
- package/translations/index.js +0 -11
- package/translations/indexMapper.js +70 -158
- package/translations/indexMapper.mjs +70 -125
- package/translations/mapCollections/aggregatedCollection.js +9 -51
- package/translations/mapCollections/aggregatedCollection.mjs +12 -41
- package/translations/mapCollections/index.js +0 -7
- package/translations/mapCollections/mapCollection.js +10 -33
- package/translations/mapCollections/mapCollection.mjs +10 -22
- package/translations/maps/hidingMap.js +2 -35
- package/translations/maps/hidingMap.mjs +7 -28
- package/translations/maps/index.js +1 -24
- package/translations/maps/index.mjs +1 -3
- package/translations/maps/indexMap.js +12 -34
- package/translations/maps/indexMap.mjs +16 -32
- package/translations/maps/indexesSequence.js +3 -41
- package/translations/maps/indexesSequence.mjs +9 -32
- package/translations/maps/linkedPhysicalIndexToValueMap.js +9 -78
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +16 -59
- package/translations/maps/physicalIndexToValueMap.js +2 -39
- package/translations/maps/physicalIndexToValueMap.mjs +8 -31
- package/translations/maps/trimmingMap.js +2 -35
- package/translations/maps/trimmingMap.mjs +7 -28
- package/translations/maps/utils/actionsOnIndexes.js +1 -7
- package/translations/maps/utils/actionsOnIndexes.mjs +9 -12
- package/translations/maps/utils/index.js +0 -13
- package/translations/maps/utils/index.mjs +0 -3
- package/translations/maps/utils/indexesSequence.js +1 -24
- package/translations/maps/utils/indexesSequence.mjs +10 -19
- package/translations/maps/utils/physicallyIndexed.js +1 -27
- package/translations/maps/utils/physicallyIndexed.mjs +11 -21
- package/utils/dataStructures/linkedList.js +15 -56
- package/utils/dataStructures/linkedList.mjs +15 -54
- package/utils/dataStructures/priorityMap.js +8 -46
- package/utils/dataStructures/priorityMap.mjs +8 -29
- package/utils/dataStructures/queue.js +6 -17
- package/utils/dataStructures/queue.mjs +6 -16
- package/utils/dataStructures/stack.js +6 -17
- package/utils/dataStructures/stack.mjs +6 -16
- package/utils/dataStructures/tree.js +11 -75
- package/utils/dataStructures/tree.mjs +11 -54
- package/utils/dataStructures/uniqueMap.js +17 -56
- package/utils/dataStructures/uniqueMap.mjs +17 -42
- package/utils/dataStructures/uniqueSet.js +5 -32
- package/utils/dataStructures/uniqueSet.mjs +5 -19
- package/utils/ghostTable.js +33 -104
- package/utils/ghostTable.mjs +35 -92
- package/utils/interval.js +10 -37
- package/utils/interval.mjs +7 -29
- package/utils/parseTable.js +11 -92
- package/utils/parseTable.mjs +11 -62
- package/utils/rootInstance.js +3 -14
- package/utils/rootInstance.mjs +3 -3
- package/utils/samplesGenerator.js +15 -51
- package/utils/samplesGenerator.mjs +17 -44
- package/utils/staticRegister.js +6 -33
- package/utils/staticRegister.mjs +6 -19
- package/validators/autocompleteValidator/autocompleteValidator.js +2 -10
- package/validators/autocompleteValidator/autocompleteValidator.mjs +2 -8
- package/validators/autocompleteValidator/index.js +0 -2
- package/validators/dateValidator/dateValidator.js +2 -21
- package/validators/dateValidator/dateValidator.mjs +2 -11
- package/validators/dateValidator/index.js +0 -2
- package/validators/index.js +0 -11
- package/validators/index.mjs +3 -5
- package/validators/numericValidator/index.js +0 -2
- package/validators/numericValidator/numericValidator.js +1 -7
- package/validators/numericValidator/numericValidator.mjs +1 -3
- package/validators/registry.js +7 -16
- package/validators/registry.mjs +7 -14
- package/validators/timeValidator/index.js +0 -2
- package/validators/timeValidator/timeValidator.js +6 -18
- package/validators/timeValidator/timeValidator.mjs +8 -13
- package/utils/sortingAlgorithms/mergeSort.js +0 -120
- package/utils/sortingAlgorithms/mergeSort.mjs +0 -110
@@ -2,35 +2,23 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.default = void 0;
|
5
|
-
|
6
5
|
require("core-js/modules/es.symbol.js");
|
7
|
-
|
8
6
|
require("core-js/modules/es.symbol.description.js");
|
9
|
-
|
10
7
|
require("core-js/modules/es.object.to-string.js");
|
11
|
-
|
12
8
|
require("core-js/modules/es.symbol.iterator.js");
|
13
|
-
|
14
9
|
require("core-js/modules/es.array.iterator.js");
|
15
|
-
|
16
10
|
require("core-js/modules/es.string.iterator.js");
|
17
|
-
|
18
11
|
require("core-js/modules/web.dom-collections.iterator.js");
|
19
|
-
|
20
12
|
var _mixed = require("../../helpers/mixed");
|
21
|
-
|
22
13
|
var _object = require("../../helpers/object");
|
23
|
-
|
24
14
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
25
|
-
|
26
15
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
27
|
-
|
28
16
|
/**
|
29
17
|
* @alias Options
|
30
18
|
* @class Options
|
31
19
|
* @description
|
32
20
|
*
|
33
|
-
* [Configuration options](@/guides/getting-started/
|
21
|
+
* [Configuration options](@/guides/getting-started/configuration-options.md) let you heavily customize your Handsontable instance. For example, you can:
|
34
22
|
*
|
35
23
|
* - Enable and disable built-in features
|
36
24
|
* - Enable and configure additional [plugins](@/guides/tools-and-building/custom-plugins.md)
|
@@ -38,10 +26,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
38
26
|
* - Adjust Handsontable's behavior
|
39
27
|
* - Implement your own custom features
|
40
28
|
*
|
41
|
-
* To apply [configuration options](@/guides/getting-started/
|
29
|
+
* To apply [configuration options](@/guides/getting-started/configuration-options.md), pass them as
|
42
30
|
* a second argument of the [Handsontable constructor](@/guides/getting-started/installation.md#initialize-handsontable),
|
43
31
|
* using the [object literal notation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer):
|
44
32
|
*
|
33
|
+
* ::: only-for javascript
|
45
34
|
* ```js
|
46
35
|
* const container = document.getElementById('example');
|
47
36
|
*
|
@@ -60,21 +49,58 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
60
49
|
* manualRowMove: true,
|
61
50
|
* });
|
62
51
|
* ```
|
52
|
+
* :::
|
53
|
+
*
|
54
|
+
* ::: only-for react
|
55
|
+
* ```jsx
|
56
|
+
* <HotTable
|
57
|
+
* // configuration options, in the object literal notation
|
58
|
+
* licenseKey='non-commercial-and-evaluation'
|
59
|
+
* data={Handsontable.helper.createSpreadsheetData(5, 10)}
|
60
|
+
* width={400}
|
61
|
+
* height={300}
|
62
|
+
* colHeaders={true}
|
63
|
+
* rowHeaders={true}
|
64
|
+
* customBorders={true}
|
65
|
+
* dropdownMenu={true}
|
66
|
+
* multiColumnSorting={true}
|
67
|
+
* filters={true}
|
68
|
+
* manualRowMove={true}
|
69
|
+
* />
|
70
|
+
* ```
|
71
|
+
* :::
|
63
72
|
*
|
64
73
|
* Depending on your needs, you can apply [configuration options](@/api/options.md) to different elements of your grid:
|
65
|
-
* - [The entire grid](@/guides/getting-started/
|
66
|
-
* - [Individual columns](@/guides/getting-started/
|
67
|
-
* - [Individual rows](@/guides/getting-started/
|
68
|
-
* - [Individual cells](@/guides/getting-started/
|
69
|
-
* - [Individual grid elements, based on any logic you implement](@/guides/getting-started/
|
74
|
+
* - [The entire grid](@/guides/getting-started/configuration-options.md#setting-grid-options)
|
75
|
+
* - [Individual columns](@/guides/getting-started/configuration-options.md#setting-column-options)
|
76
|
+
* - [Individual rows](@/guides/getting-started/configuration-options.md#setting-row-options)
|
77
|
+
* - [Individual cells](@/guides/getting-started/configuration-options.md#setting-cell-options)
|
78
|
+
* - [Individual grid elements, based on any logic you implement](@/guides/getting-started/configuration-options.md#implementing-custom-logic)
|
70
79
|
*
|
71
80
|
* Read more:
|
72
|
-
* - [Configuration options](@/guides/getting-started/
|
81
|
+
* - [Configuration options](@/guides/getting-started/configuration-options.md)
|
73
82
|
*/
|
74
83
|
var _default = function _default() {
|
75
84
|
return {
|
76
85
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
77
86
|
|
87
|
+
/**
|
88
|
+
* Information on which of the meta properties were added automatically.
|
89
|
+
* For example: setting the `renderer` property directly won't extend the `_automaticallyAssignedMetaProps`
|
90
|
+
* entry, but setting a `type` will modify it to:
|
91
|
+
* ```
|
92
|
+
* _automaticallyAssignedMetaProps: {
|
93
|
+
* renderer: true,
|
94
|
+
* editor: true,
|
95
|
+
* validator: true
|
96
|
+
* }
|
97
|
+
* ```
|
98
|
+
*
|
99
|
+
* @private
|
100
|
+
* @type {object}
|
101
|
+
* @default {}
|
102
|
+
*/
|
103
|
+
_automaticallyAssignedMetaProps: {},
|
78
104
|
/**
|
79
105
|
* The `activeHeaderClassName` option lets you add a CSS class name
|
80
106
|
* to every currently-active, currently-selected header (when a whole column or row is selected).
|
@@ -104,7 +130,6 @@ var _default = function _default() {
|
|
104
130
|
* ```
|
105
131
|
*/
|
106
132
|
activeHeaderClassName: 'ht__active_highlight',
|
107
|
-
|
108
133
|
/**
|
109
134
|
* The `allowEmpty` option determines whether Handsontable accepts the following values:
|
110
135
|
* - `null`
|
@@ -113,10 +138,14 @@ var _default = function _default() {
|
|
113
138
|
*
|
114
139
|
* You can set the `allowEmpty` option to one of the following:
|
115
140
|
*
|
116
|
-
* | Setting | Description
|
117
|
-
* | ---------------- |
|
118
|
-
* | `true` (default) | - Accept `null`, `undefined` and `''` values<br>- Mark cells that contain `null`, `undefined`
|
119
|
-
* | `false` | - Don't accept `null`, `undefined` and `''` values<br>- Mark cells that contain `null`, `undefined`
|
141
|
+
* | Setting | Description |
|
142
|
+
* | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
143
|
+
* | `true` (default) | - Accept `null`, `undefined` and `''` values<br>- Mark cells that contain `null`, `undefined` or `''` values as `valid` |
|
144
|
+
* | `false` | - Don't accept `null`, `undefined` and `''` values<br>- Mark cells that contain `null`, `undefined` or `''` values with as `invalid` |
|
145
|
+
*
|
146
|
+
* ::: tip
|
147
|
+
* To use the [`allowEmpty`](#allowempty) option, you need to set the [`validator`](#validator) option (or the [`type`](#type) option).
|
148
|
+
* :::
|
120
149
|
*
|
121
150
|
* @memberof Options#
|
122
151
|
* @type {boolean}
|
@@ -125,22 +154,21 @@ var _default = function _default() {
|
|
125
154
|
*
|
126
155
|
* @example
|
127
156
|
* ```js
|
128
|
-
* // allow empty values in
|
157
|
+
* // allow empty values in each cell of the entire grid
|
129
158
|
* allowEmpty: true,
|
130
159
|
*
|
131
160
|
* // or
|
132
161
|
* columns: [
|
133
162
|
* {
|
134
|
-
*
|
163
|
+
* type: 'date',
|
135
164
|
* dateFormat: 'DD/MM/YYYY',
|
136
|
-
* // allow empty values in
|
165
|
+
* // allow empty values in each cell of the 'date' column
|
137
166
|
* allowEmpty: true
|
138
167
|
* }
|
139
168
|
* ],
|
140
169
|
* ```
|
141
170
|
*/
|
142
171
|
allowEmpty: true,
|
143
|
-
|
144
172
|
/**
|
145
173
|
* The `allowHtml` option configures whether [`autocomplete`](@/guides/cell-types/autocomplete-cell-type.md)
|
146
174
|
* and [`dropdown`](@/guides/cell-types/dropdown-cell-type.md) cells' [`source`](#source) data
|
@@ -169,7 +197,7 @@ var _default = function _default() {
|
|
169
197
|
* ```js
|
170
198
|
* columns: [
|
171
199
|
* {
|
172
|
-
* // set the `type` of
|
200
|
+
* // set the `type` of each cell in this column to `autocomplete`
|
173
201
|
* type: 'autocomplete',
|
174
202
|
* // set options available in every `autocomplete` cell of this column
|
175
203
|
* source: ['<strong>foo</strong>', '<strong>bar</strong>']
|
@@ -180,7 +208,6 @@ var _default = function _default() {
|
|
180
208
|
* ```
|
181
209
|
*/
|
182
210
|
allowHtml: false,
|
183
|
-
|
184
211
|
/**
|
185
212
|
* If set to `true`, the `allowInsertColumn` option adds the following menu items to the [context menu](@/guides/accessories-and-menus/context-menu.md):
|
186
213
|
* - **Insert column left**
|
@@ -198,7 +225,6 @@ var _default = function _default() {
|
|
198
225
|
* ```
|
199
226
|
*/
|
200
227
|
allowInsertColumn: true,
|
201
|
-
|
202
228
|
/**
|
203
229
|
* If set to `true`, the `allowInsertRow` option adds the following menu items to the [context menu](@/guides/accessories-and-menus/context-menu.md):
|
204
230
|
* - **Insert row above**
|
@@ -216,7 +242,6 @@ var _default = function _default() {
|
|
216
242
|
* ```
|
217
243
|
*/
|
218
244
|
allowInsertRow: true,
|
219
|
-
|
220
245
|
/**
|
221
246
|
* The `allowInvalid` option determines whether Handsontable accepts values
|
222
247
|
* that were marked as `invalid` by the [cell validator](@/guides/cell-functions/cell-validator.md).
|
@@ -249,7 +274,6 @@ var _default = function _default() {
|
|
249
274
|
* ```
|
250
275
|
*/
|
251
276
|
allowInvalid: true,
|
252
|
-
|
253
277
|
/**
|
254
278
|
* If set to `true`, the `allowRemoveColumn` option adds the following menu items to the [context menu](@/guides/accessories-and-menus/context-menu.md):
|
255
279
|
* - **Remove column**
|
@@ -269,7 +293,6 @@ var _default = function _default() {
|
|
269
293
|
* ```
|
270
294
|
*/
|
271
295
|
allowRemoveColumn: true,
|
272
|
-
|
273
296
|
/**
|
274
297
|
* If set to `true`, the `allowRemoveRow` option adds the following menu items to the [context menu](@/guides/accessories-and-menus/context-menu.md):
|
275
298
|
* - **Remove row**
|
@@ -289,7 +312,6 @@ var _default = function _default() {
|
|
289
312
|
* ```
|
290
313
|
*/
|
291
314
|
allowRemoveRow: true,
|
292
|
-
|
293
315
|
/**
|
294
316
|
* The `autoColumnSize` option configures the [`AutoColumnSize`](@/api/autoColumnSize.md) plugin.
|
295
317
|
*
|
@@ -340,7 +362,6 @@ var _default = function _default() {
|
|
340
362
|
* ```
|
341
363
|
*/
|
342
364
|
autoColumnSize: void 0,
|
343
|
-
|
344
365
|
/**
|
345
366
|
* The `autoRowSize` option configures the [`AutoRowSize`](@/api/autoRowSize.md) plugin.
|
346
367
|
*
|
@@ -380,7 +401,6 @@ var _default = function _default() {
|
|
380
401
|
* ```
|
381
402
|
*/
|
382
403
|
autoRowSize: void 0,
|
383
|
-
|
384
404
|
/**
|
385
405
|
* The `autoWrapCol` option determines what happens to current cell selection when you navigate to the grid's top or bottom edge.
|
386
406
|
*
|
@@ -403,7 +423,6 @@ var _default = function _default() {
|
|
403
423
|
* ```
|
404
424
|
*/
|
405
425
|
autoWrapCol: false,
|
406
|
-
|
407
426
|
/**
|
408
427
|
* The `autoWrapRow` option determines what happens to current cell selection when you navigate to the grid's left or right edge.
|
409
428
|
*
|
@@ -426,7 +445,6 @@ var _default = function _default() {
|
|
426
445
|
* ```
|
427
446
|
*/
|
428
447
|
autoWrapRow: false,
|
429
|
-
|
430
448
|
/**
|
431
449
|
* @description
|
432
450
|
* The `bindRowsWithHeaders` option configures the [`BindRowsWithHeaders`](@/api/bindRowsWithHeaders.md) plugin.
|
@@ -453,15 +471,14 @@ var _default = function _default() {
|
|
453
471
|
* ```
|
454
472
|
*/
|
455
473
|
bindRowsWithHeaders: void 0,
|
456
|
-
|
457
474
|
/**
|
458
|
-
* The `cell` option lets you apply [configuration options](@/guides/getting-started/
|
475
|
+
* The `cell` option lets you apply [configuration options](@/guides/getting-started/configuration-options.md) to individual cells.
|
459
476
|
*
|
460
|
-
* The `cell` option overwrites the [top-level grid options](@/guides/getting-started/
|
477
|
+
* The `cell` option overwrites the [top-level grid options](@/guides/getting-started/configuration-options.md#setting-grid-options),
|
461
478
|
* and the [`columns`](#columns) options.
|
462
479
|
*
|
463
480
|
* Read more:
|
464
|
-
* - [Configuration options: Setting cell options](@/guides/getting-started/
|
481
|
+
* - [Configuration options: Setting cell options](@/guides/getting-started/configuration-options.md#setting-cell-options)
|
465
482
|
* - [`columns`](#columns)
|
466
483
|
*
|
467
484
|
* @memberof Options#
|
@@ -483,10 +500,9 @@ var _default = function _default() {
|
|
483
500
|
* ```
|
484
501
|
*/
|
485
502
|
cell: [],
|
486
|
-
|
487
503
|
/**
|
488
504
|
* @description
|
489
|
-
* The `cells` option lets you apply [configuration options](@/guides/getting-started/
|
505
|
+
* The `cells` option lets you apply any other [configuration options](@/guides/getting-started/configuration-options.md) to
|
490
506
|
* individual grid elements (columns, rows, cells), based on any logic you implement.
|
491
507
|
*
|
492
508
|
* The `cells` option overwrites all other options (including options set by [`columns`](#columns) and [`cell`](#cell)).
|
@@ -499,8 +515,8 @@ var _default = function _default() {
|
|
499
515
|
* | `prop` | No | String \| Number | If [`data`](#data) is set to an [array of arrays](@/guides/getting-started/binding-to-data.md#array-of-arrays), `prop` is the same number as `column`.<br><br>If [`data`](#data) is set to an [array of objects](@/guides/getting-started/binding-to-data.md#array-of-objects), `prop` is a property name for the column's data object. |
|
500
516
|
*
|
501
517
|
* Read more:
|
502
|
-
* - [Configuration options: Implementing custom logic](@/guides/getting-started/
|
503
|
-
* - [Configuration options: Setting row options](@/guides/getting-started/
|
518
|
+
* - [Configuration options: Implementing custom logic](@/guides/getting-started/configuration-options.md#implementing-custom-logic)
|
519
|
+
* - [Configuration options: Setting row options](@/guides/getting-started/configuration-options.md#setting-row-options)
|
504
520
|
* - [`columns`](#columns)
|
505
521
|
* - [`cell`](#cell)
|
506
522
|
*
|
@@ -526,7 +542,6 @@ var _default = function _default() {
|
|
526
542
|
* ```
|
527
543
|
*/
|
528
544
|
cells: void 0,
|
529
|
-
|
530
545
|
/**
|
531
546
|
* The `checkedTemplate` option lets you configure what value
|
532
547
|
* a checked [`checkbox`](@/guides/cell-types/checkbox-cell-type.md) cell has.
|
@@ -552,13 +567,13 @@ var _default = function _default() {
|
|
552
567
|
* ```js
|
553
568
|
* columns: [
|
554
569
|
* {
|
555
|
-
* // set the `type` of
|
570
|
+
* // set the `type` of each cell in this column to `checkbox`
|
556
571
|
* // when checked, the cell's value is `true`
|
557
572
|
* // when unchecked, the cell's value is `false`
|
558
573
|
* type: 'checkbox',
|
559
574
|
* },
|
560
575
|
* {
|
561
|
-
* // set the `type` of
|
576
|
+
* // set the `type` of each cell in this column to `checkbox`
|
562
577
|
* type: 'checkbox',
|
563
578
|
* // when checked, the cell's value is `'Yes'`
|
564
579
|
* checkedTemplate: 'Yes',
|
@@ -569,7 +584,6 @@ var _default = function _default() {
|
|
569
584
|
* ```
|
570
585
|
*/
|
571
586
|
checkedTemplate: void 0,
|
572
|
-
|
573
587
|
/**
|
574
588
|
* The `className` option lets you add CSS class names to every currently-selected element.
|
575
589
|
*
|
@@ -580,10 +594,15 @@ var _default = function _default() {
|
|
580
594
|
* | A string | Add a single CSS class name to every currently-selected element |
|
581
595
|
* | An array of strings | Add multiple CSS class names to every currently-selected element |
|
582
596
|
*
|
583
|
-
*
|
597
|
+
* ::: tip
|
598
|
+
* Don't change the `className` metadata of the [column summary](@/guides/columns/column-summary.md) row.
|
599
|
+
* To style the summary row, use the class name assigned automatically by the [`ColumnSummary`](@/api/columnSummary.md) plugin: `columnSummaryResult`.
|
600
|
+
* :::
|
601
|
+
*
|
602
|
+
* To apply different CSS class names on different levels, use Handsontable's [cascading configuration](@/guides/getting-started/configuration-options.md#cascading-configuration).
|
584
603
|
*
|
585
604
|
* Read more:
|
586
|
-
* - [Configuration options: Cascading configuration](@/guides/getting-started/
|
605
|
+
* - [Configuration options: Cascading configuration](@/guides/getting-started/configuration-options.md#cascading-configuration)
|
587
606
|
* - [`currentRowClassName`](#currentRowClassName)
|
588
607
|
* - [`currentColClassName`](#currentColClassName)
|
589
608
|
* - [`currentHeaderClassName`](#currentHeaderClassName)
|
@@ -612,7 +631,6 @@ var _default = function _default() {
|
|
612
631
|
* ```
|
613
632
|
*/
|
614
633
|
className: void 0,
|
615
|
-
|
616
634
|
/**
|
617
635
|
* The `colHeaders` option configures your grid's column headers.
|
618
636
|
*
|
@@ -648,7 +666,6 @@ var _default = function _default() {
|
|
648
666
|
* ```
|
649
667
|
*/
|
650
668
|
colHeaders: null,
|
651
|
-
|
652
669
|
/**
|
653
670
|
* @description
|
654
671
|
* The `collapsibleColumns` option configures the [`CollapsibleColumns`](@/api/collapsibleColumns.md) plugin.
|
@@ -682,7 +699,6 @@ var _default = function _default() {
|
|
682
699
|
* ```
|
683
700
|
*/
|
684
701
|
collapsibleColumns: void 0,
|
685
|
-
|
686
702
|
/**
|
687
703
|
* @description
|
688
704
|
* The `columnHeaderHeight` option configures the height of column headers.
|
@@ -709,24 +725,24 @@ var _default = function _default() {
|
|
709
725
|
* ```
|
710
726
|
*/
|
711
727
|
columnHeaderHeight: void 0,
|
712
|
-
|
713
728
|
/**
|
714
729
|
* @description
|
715
|
-
* The `columns` option lets you apply [configuration options](@/guides/getting-started/
|
730
|
+
* The `columns` option lets you apply any other [configuration options](@/guides/getting-started/configuration-options.md) to individual columns (or ranges of columns).
|
716
731
|
*
|
717
732
|
* You can set the `columns` option to one of the following:
|
718
733
|
* - An array of objects (each object represents one column)
|
719
734
|
* - A function that returns an array of objects
|
720
735
|
*
|
721
|
-
* The `columns` option overwrites the [top-level grid options](@/guides/getting-started/
|
736
|
+
* The `columns` option overwrites the [top-level grid options](@/guides/getting-started/configuration-options.md#setting-grid-options).
|
722
737
|
*
|
723
|
-
* When you use
|
738
|
+
* When you use `columns`, the [`startCols`](#startCols), [`minCols`](#minCols), and [`maxCols`](#maxCols) options are ignored.
|
724
739
|
*
|
725
740
|
* Read more:
|
726
|
-
* - [Configuration options: Setting column options](@/guides/getting-started/
|
741
|
+
* - [Configuration options: Setting column options](@/guides/getting-started/configuration-options.md#setting-column-options)
|
727
742
|
* - [`startCols`](#startCols)
|
728
743
|
* - [`minCols`](#minCols)
|
729
744
|
* - [`maxCols`](#maxCols)
|
745
|
+
* - [`data`](#data)
|
730
746
|
*
|
731
747
|
* @memberof Options#
|
732
748
|
* @type {object[]|Function}
|
@@ -762,7 +778,6 @@ var _default = function _default() {
|
|
762
778
|
* ```
|
763
779
|
*/
|
764
780
|
columns: void 0,
|
765
|
-
|
766
781
|
/**
|
767
782
|
* @description
|
768
783
|
* The `columnSorting` option configures the [`ColumnSorting`](@/api/columnSorting.md) plugin.
|
@@ -842,7 +857,6 @@ var _default = function _default() {
|
|
842
857
|
* ```
|
843
858
|
*/
|
844
859
|
columnSorting: void 0,
|
845
|
-
|
846
860
|
/**
|
847
861
|
* @description
|
848
862
|
* The `columnSummary` option configures the [`ColumnSummary`](@/api/columnSummary.md) plugin.
|
@@ -897,7 +911,6 @@ var _default = function _default() {
|
|
897
911
|
* ```
|
898
912
|
*/
|
899
913
|
columnSummary: void 0,
|
900
|
-
|
901
914
|
/**
|
902
915
|
* The `colWidths` option sets columns' widths, in pixels.
|
903
916
|
*
|
@@ -945,7 +958,6 @@ var _default = function _default() {
|
|
945
958
|
* ```
|
946
959
|
*/
|
947
960
|
colWidths: void 0,
|
948
|
-
|
949
961
|
/**
|
950
962
|
* The `commentedCellClassName` option lets you add a CSS class name to cells
|
951
963
|
* that have comments.
|
@@ -972,12 +984,11 @@ var _default = function _default() {
|
|
972
984
|
* @example
|
973
985
|
* ```js
|
974
986
|
* // add a `has-comment` CSS class name
|
975
|
-
* // to
|
987
|
+
* // to each cell that has a comment
|
976
988
|
* commentedCellClassName: 'has-comment',
|
977
989
|
* ```
|
978
990
|
*/
|
979
991
|
commentedCellClassName: 'htCommentCell',
|
980
|
-
|
981
992
|
/**
|
982
993
|
* @description
|
983
994
|
* The `comments` option configures the [`Comments`](@/api/comments.md) plugin.
|
@@ -1032,7 +1043,6 @@ var _default = function _default() {
|
|
1032
1043
|
* ```
|
1033
1044
|
*/
|
1034
1045
|
comments: false,
|
1035
|
-
|
1036
1046
|
/**
|
1037
1047
|
* @description
|
1038
1048
|
* The `contextMenu` option configures the [`ContextMenu`](@/api/contextMenu.md) plugin.
|
@@ -1095,21 +1105,20 @@ var _default = function _default() {
|
|
1095
1105
|
* ```
|
1096
1106
|
*/
|
1097
1107
|
contextMenu: void 0,
|
1098
|
-
|
1099
1108
|
/**
|
1100
1109
|
* @description
|
1101
1110
|
* The `copyable` option determines whether a cell's value can be copied to the clipboard or not.
|
1102
1111
|
*
|
1103
1112
|
* You can set the `copyable` option to one of the following:
|
1104
1113
|
*
|
1105
|
-
* | Setting | Description
|
1106
|
-
* | -------------------------------------------------------------------------------------------------------------- |
|
1107
|
-
* | `true` (default) | -
|
1108
|
-
* | `false`<br>(default for the [`password`](@/guides/cell-types/password-cell-type.md) [cell type](#type)) | -
|
1114
|
+
* | Setting | Description |
|
1115
|
+
* | -------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
1116
|
+
* | `true` (default) | - On pressing <kbd>**Ctrl**</kbd>/<kbd>**Cmd**</kbd> + <kbd>**C**</kbd>, add the cell's value to the clipboard |
|
1117
|
+
* | `false`<br>(default for the [`password`](@/guides/cell-types/password-cell-type.md) [cell type](#type)) | - On pressing <kbd>**Ctrl**</kbd>/<kbd>**Cmd**</kbd> + <kbd>**C**</kbd>, add an empty string (`""`) to the clipboard |
|
1109
1118
|
*
|
1110
1119
|
* Read more:
|
1111
1120
|
* - [Clipboard](@/guides/cell-features/clipboard.md)
|
1112
|
-
* - [Configuration options: Cascading configuration](@/guides/getting-started/
|
1121
|
+
* - [Configuration options: Cascading configuration](@/guides/getting-started/configuration-options.md#cascading-configuration)
|
1113
1122
|
* - [Password cell type](@/guides/cell-types/password-cell-type.md)
|
1114
1123
|
*
|
1115
1124
|
* @memberof Options#
|
@@ -1119,17 +1128,17 @@ var _default = function _default() {
|
|
1119
1128
|
*
|
1120
1129
|
* @example
|
1121
1130
|
* ```js
|
1122
|
-
* // enable copying for
|
1131
|
+
* // enable copying for each cell of the entire grid
|
1123
1132
|
* copyable: true,
|
1124
1133
|
*
|
1125
1134
|
* // enable copying for individual columns
|
1126
1135
|
* columns: [
|
1127
1136
|
* {
|
1128
|
-
* // enable copying for
|
1137
|
+
* // enable copying for each cell of this column
|
1129
1138
|
* copyable: true
|
1130
1139
|
* },
|
1131
1140
|
* {
|
1132
|
-
* // disable copying for
|
1141
|
+
* // disable copying for each cell of this column
|
1133
1142
|
* copyable: false
|
1134
1143
|
* }
|
1135
1144
|
* ]
|
@@ -1146,7 +1155,6 @@ var _default = function _default() {
|
|
1146
1155
|
* ```
|
1147
1156
|
*/
|
1148
1157
|
copyable: true,
|
1149
|
-
|
1150
1158
|
/**
|
1151
1159
|
* The `copyPaste` option configures the [`CopyPaste`](@/api/copyPaste.md) plugin.
|
1152
1160
|
*
|
@@ -1195,17 +1203,22 @@ var _default = function _default() {
|
|
1195
1203
|
* ```
|
1196
1204
|
*/
|
1197
1205
|
copyPaste: true,
|
1198
|
-
|
1199
1206
|
/**
|
1200
|
-
* The `correctFormat` option configures
|
1207
|
+
* The `correctFormat` option configures whether incorrectly-formatted times and dates are amended or not.
|
1208
|
+
*
|
1209
|
+
* When the user enters dates and times, Handsontable can automatically adjust their format
|
1210
|
+
* to match the [`dateFormat`](#dateFormat) and [`timeFormat`](@/guides/cell-types/time-cell-type.md) settings.
|
1201
1211
|
*
|
1202
|
-
*
|
1203
|
-
*
|
1204
|
-
* |
|
1205
|
-
* |
|
1212
|
+
* You can set the `correctFormat` option to one of the following:
|
1213
|
+
*
|
1214
|
+
* | Setting | Description |
|
1215
|
+
* | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
1216
|
+
* | `false` (default) | Don't correct the format of the entered date or time (treat the entered date or time as invalid) |
|
1217
|
+
* | `true` | Correct the format of the entered date or time to match the [`dateFormat`](#dateFormat) or [`timeFormat`](@/guides/cell-types/time-cell-type.md) settings |
|
1206
1218
|
*
|
1207
1219
|
* Read more:
|
1208
1220
|
* - [Date cell type](@/guides/cell-types/date-cell-type.md)
|
1221
|
+
* - [Time cell type](@/guides/cell-types/time-cell-type.md)
|
1209
1222
|
* - [`dateFormat`](#dateFormat)
|
1210
1223
|
*
|
1211
1224
|
* @memberof Options#
|
@@ -1217,21 +1230,29 @@ var _default = function _default() {
|
|
1217
1230
|
* ```js
|
1218
1231
|
* columns: [
|
1219
1232
|
* {
|
1220
|
-
* // set the `type` of
|
1233
|
+
* // set the `type` of each cell in this column to `date`
|
1221
1234
|
* type: 'date',
|
1222
1235
|
* // for every `date` cell of this column, set the date format to `YYYY-MM-DD`
|
1223
1236
|
* dateFormat: 'YYYY-MM-DD',
|
1224
1237
|
* // enforce the `YYYY-MM-DD` date format
|
1225
1238
|
* correctFormat: true
|
1226
1239
|
* },
|
1240
|
+
*
|
1241
|
+
* {
|
1242
|
+
* // set the `type` of each cell in this column to `time`
|
1243
|
+
* type: 'time',
|
1244
|
+
* // for every `time` cell of this column, set the time format to `h:mm:ss a`
|
1245
|
+
* timeFormat: 'h:mm:ss a',
|
1246
|
+
* // enforce the `h:mm:ss a` time format
|
1247
|
+
* correctFormat: true
|
1248
|
+
* },
|
1227
1249
|
* ],
|
1228
1250
|
* ```
|
1229
1251
|
*/
|
1230
1252
|
correctFormat: false,
|
1231
|
-
|
1232
1253
|
/**
|
1233
1254
|
* The `currentColClassName` option lets you add a CSS class name
|
1234
|
-
* to
|
1255
|
+
* to each cell of the currently-visible, currently-selected columns.
|
1235
1256
|
*
|
1236
1257
|
* Read more:
|
1237
1258
|
* - [`currentRowClassName`](#currentRowClassName)
|
@@ -1253,12 +1274,11 @@ var _default = function _default() {
|
|
1253
1274
|
* @example
|
1254
1275
|
* ```js
|
1255
1276
|
* // add a `your-class-name` CSS class name
|
1256
|
-
* // to
|
1277
|
+
* // to each cell of the currently-visible, currently-selected columns
|
1257
1278
|
* currentColClassName: 'your-class-name',
|
1258
1279
|
* ```
|
1259
1280
|
*/
|
1260
1281
|
currentColClassName: void 0,
|
1261
|
-
|
1262
1282
|
/**
|
1263
1283
|
* The `currentHeaderClassName` option lets you add a CSS class name
|
1264
1284
|
* to every currently-visible, currently-selected header.
|
@@ -1287,10 +1307,9 @@ var _default = function _default() {
|
|
1287
1307
|
* ```
|
1288
1308
|
*/
|
1289
1309
|
currentHeaderClassName: 'ht__highlight',
|
1290
|
-
|
1291
1310
|
/**
|
1292
1311
|
* The `currentRowClassName` option lets you add a CSS class name
|
1293
|
-
* to
|
1312
|
+
* to each cell of the currently-visible, currently-selected rows.
|
1294
1313
|
*
|
1295
1314
|
* Read more:
|
1296
1315
|
* - [`currentColClassName`](#currentColClassName)
|
@@ -1312,12 +1331,11 @@ var _default = function _default() {
|
|
1312
1331
|
* @example
|
1313
1332
|
* ```js
|
1314
1333
|
* // add a `your-class-name` CSS class name
|
1315
|
-
* // to
|
1334
|
+
* // to each cell of the currently-visible, currently-selected rows
|
1316
1335
|
* currentRowClassName: 'your-class-name',
|
1317
1336
|
* ```
|
1318
1337
|
*/
|
1319
1338
|
currentRowClassName: void 0,
|
1320
|
-
|
1321
1339
|
/**
|
1322
1340
|
* @description
|
1323
1341
|
* The `customBorders` option configures the [`CustomBorders`](@/api/customBorders.md) plugin.
|
@@ -1430,7 +1448,6 @@ var _default = function _default() {
|
|
1430
1448
|
* ```
|
1431
1449
|
*/
|
1432
1450
|
customBorders: false,
|
1433
|
-
|
1434
1451
|
/**
|
1435
1452
|
* @description
|
1436
1453
|
* The `data` option sets the initial [data](@/guides/getting-started/binding-to-data.md) of your Handsontable instance.
|
@@ -1441,9 +1458,13 @@ var _default = function _default() {
|
|
1441
1458
|
* - Either to an [array of arrays](@/guides/getting-started/binding-to-data.md#array-of-arrays).
|
1442
1459
|
* - Or to an [array of objects](@/guides/getting-started/binding-to-data.md#array-of-objects).
|
1443
1460
|
*
|
1461
|
+
* If you don't set the `data` option (or set it to `null`), Handsontable renders as an empty 5x5 grid by default.
|
1462
|
+
*
|
1444
1463
|
* Read more:
|
1445
1464
|
* - [Binding to data](@/guides/getting-started/binding-to-data.md)
|
1446
1465
|
* - [`dataSchema`](#dataSchema)
|
1466
|
+
* - [`startRows`](#startRows)
|
1467
|
+
* - [`startCols`](#startCols)
|
1447
1468
|
*
|
1448
1469
|
* @memberof Options#
|
1449
1470
|
* @type {Array[]|object[]}
|
@@ -1470,18 +1491,24 @@ var _default = function _default() {
|
|
1470
1491
|
* ```
|
1471
1492
|
*/
|
1472
1493
|
data: void 0,
|
1473
|
-
|
1474
1494
|
/**
|
1475
1495
|
* @description
|
1476
|
-
*
|
1496
|
+
* When the [`data`](#data) option is set to an [array of objects](@/guides/getting-started/binding-to-data.md#array-of-objects)
|
1477
1497
|
* (or is empty), the `dataSchema` option defines the structure of new rows.
|
1478
1498
|
*
|
1499
|
+
* Using the `dataSchema` option, you can start out with an empty grid.
|
1500
|
+
*
|
1501
|
+
* You can set the `dataSchema` option to one of the following:
|
1502
|
+
* - An object
|
1503
|
+
* - A function
|
1504
|
+
*
|
1479
1505
|
* Read more:
|
1480
1506
|
* - [Binding to data: Array of objects with custom data schema](@/guides/getting-started/binding-to-data.md#array-of-objects-with-custom-data-schema)
|
1507
|
+
* - [Binding to data: Function data source and schema](@/guides/getting-started/binding-to-data.md#function-data-source-and-schema)
|
1481
1508
|
* - [`data`](#data)
|
1482
1509
|
*
|
1483
1510
|
* @memberof Options#
|
1484
|
-
* @type {object}
|
1511
|
+
* @type {object|Function}
|
1485
1512
|
* @default undefined
|
1486
1513
|
* @category Core
|
1487
1514
|
*
|
@@ -1502,7 +1529,6 @@ var _default = function _default() {
|
|
1502
1529
|
* ```
|
1503
1530
|
*/
|
1504
1531
|
dataSchema: void 0,
|
1505
|
-
|
1506
1532
|
/**
|
1507
1533
|
* The `dateFormat` option configures the date format accepted by [`date`](@/guides/cell-types/date-cell-type.md) cells.
|
1508
1534
|
*
|
@@ -1524,7 +1550,7 @@ var _default = function _default() {
|
|
1524
1550
|
* ```js
|
1525
1551
|
* columns: [
|
1526
1552
|
* {
|
1527
|
-
* // set the `type` of
|
1553
|
+
* // set the `type` of each cell in this column to `date`
|
1528
1554
|
* type: 'date',
|
1529
1555
|
* // for every `date` cell of this column, set the date format to `YYYY-MM-DD`
|
1530
1556
|
* dateFormat: 'YYYY-MM-DD',
|
@@ -1533,18 +1559,17 @@ var _default = function _default() {
|
|
1533
1559
|
* ```
|
1534
1560
|
*/
|
1535
1561
|
dateFormat: 'DD/MM/YYYY',
|
1536
|
-
|
1537
1562
|
/**
|
1538
|
-
* The `datePickerConfig` option configures the `date` [cell editor](@/guides/cell-functions/cell-editor.md)'s date picker, which uses an external dependency: [Pikaday](https://github.com/Pikaday/Pikaday/tree/1.8.
|
1563
|
+
* The `datePickerConfig` option configures the `date` [cell editor](@/guides/cell-functions/cell-editor.md)'s date picker, which uses an external dependency: [Pikaday](https://github.com/Pikaday/Pikaday/tree/1.8.2).
|
1539
1564
|
*
|
1540
|
-
* You can set the `datePickerConfig` option to an object with any of the available [Pikaday options](https://github.com/Pikaday/Pikaday/tree/1.8.
|
1565
|
+
* You can set the `datePickerConfig` option to an object with any of the available [Pikaday options](https://github.com/Pikaday/Pikaday/tree/1.8.2#configuration),
|
1541
1566
|
* except for the following, which are always overwritten by the `date` [cell editor](@/guides/cell-functions/cell-editor.md):
|
1542
1567
|
* - `bound`
|
1543
1568
|
* - `container`
|
1544
1569
|
* - `field`
|
1545
1570
|
* - `trigger`
|
1546
1571
|
*
|
1547
|
-
* If the `datePickerConfig` option is not defined, the `date` [cell editor](@/guides/cell-functions/cell-editor.md) overwrites the following [Pikaday options](https://github.com/Pikaday/Pikaday/tree/1.8.
|
1572
|
+
* If the `datePickerConfig` option is not defined, the `date` [cell editor](@/guides/cell-functions/cell-editor.md) overwrites the following [Pikaday options](https://github.com/Pikaday/Pikaday/tree/1.8.2#configuration) as well:
|
1548
1573
|
*
|
1549
1574
|
* | Pikaday option | Handsontable's setting |
|
1550
1575
|
* | -------------------- | ---------------------- |
|
@@ -1555,7 +1580,7 @@ var _default = function _default() {
|
|
1555
1580
|
* - [`editor`](#editor)
|
1556
1581
|
* - [`dateFormat`](#dateFormat)
|
1557
1582
|
* - [Cell editor](@/guides/cell-functions/cell-editor.md)
|
1558
|
-
* - [All Pikaday options →](https://github.com/Pikaday/Pikaday/tree/1.8.
|
1583
|
+
* - [All Pikaday options →](https://github.com/Pikaday/Pikaday/tree/1.8.2#configuration)
|
1559
1584
|
*
|
1560
1585
|
* @memberof Options#
|
1561
1586
|
* @type {object}
|
@@ -1563,7 +1588,6 @@ var _default = function _default() {
|
|
1563
1588
|
* @category Core
|
1564
1589
|
*/
|
1565
1590
|
datePickerConfig: void 0,
|
1566
|
-
|
1567
1591
|
/**
|
1568
1592
|
* The `defaultDate` option configures the date displayed
|
1569
1593
|
* in empty [`date`](@/guides/cell-types/date-cell-type.md) cells.
|
@@ -1583,7 +1607,7 @@ var _default = function _default() {
|
|
1583
1607
|
* ```js
|
1584
1608
|
* columns: [
|
1585
1609
|
* {
|
1586
|
-
* // set the `type` of
|
1610
|
+
* // set the `type` of each cell in this column to `date`
|
1587
1611
|
* type: 'date',
|
1588
1612
|
* // in every empty `date` cell of this column, display `2015-02-02`
|
1589
1613
|
* defaultDate: '2015-02-02'
|
@@ -1592,7 +1616,6 @@ var _default = function _default() {
|
|
1592
1616
|
* ```
|
1593
1617
|
*/
|
1594
1618
|
defaultDate: void 0,
|
1595
|
-
|
1596
1619
|
/**
|
1597
1620
|
* @description
|
1598
1621
|
* The `disableVisualSelection` option configures how
|
@@ -1636,7 +1659,6 @@ var _default = function _default() {
|
|
1636
1659
|
* ```
|
1637
1660
|
*/
|
1638
1661
|
disableVisualSelection: false,
|
1639
|
-
|
1640
1662
|
/**
|
1641
1663
|
* @description
|
1642
1664
|
* The `dragToScroll` option configures the [`DragToScroll`](@/api/dragToScroll.md) plugin.
|
@@ -1663,7 +1685,6 @@ var _default = function _default() {
|
|
1663
1685
|
* ```
|
1664
1686
|
*/
|
1665
1687
|
dragToScroll: true,
|
1666
|
-
|
1667
1688
|
/**
|
1668
1689
|
* The `dropdownMenu` option configures the [`DropdownMenu`](@/api/dropdownMenu.md) plugin.
|
1669
1690
|
*
|
@@ -1722,7 +1743,6 @@ var _default = function _default() {
|
|
1722
1743
|
* ```
|
1723
1744
|
*/
|
1724
1745
|
dropdownMenu: void 0,
|
1725
|
-
|
1726
1746
|
/**
|
1727
1747
|
* The `editor` option sets a [cell editor](@/guides/cell-functions/cell-editor.md) for a cell.
|
1728
1748
|
*
|
@@ -1754,7 +1774,7 @@ var _default = function _default() {
|
|
1754
1774
|
* Read more:
|
1755
1775
|
* - [Cell editor](@/guides/cell-functions/cell-editor.md)
|
1756
1776
|
* - [Cell type](@/guides/cell-types/cell-type.md)
|
1757
|
-
* - [Configuration options: Cascading configuration](@/guides/getting-started/
|
1777
|
+
* - [Configuration options: Cascading configuration](@/guides/getting-started/configuration-options.md#cascading-configuration)
|
1758
1778
|
* - [`type`](#type)
|
1759
1779
|
*
|
1760
1780
|
* @memberof Options#
|
@@ -1764,24 +1784,23 @@ var _default = function _default() {
|
|
1764
1784
|
*
|
1765
1785
|
* @example
|
1766
1786
|
* ```js
|
1767
|
-
* // use the `numeric` editor for
|
1787
|
+
* // use the `numeric` editor for each cell of the entire grid
|
1768
1788
|
* editor: 'numeric',
|
1769
1789
|
*
|
1770
1790
|
* // apply the `editor` option to individual columns
|
1771
1791
|
* columns: [
|
1772
1792
|
* {
|
1773
|
-
* // use the `autocomplete` editor for
|
1793
|
+
* // use the `autocomplete` editor for each cell of this column
|
1774
1794
|
* editor: 'autocomplete'
|
1775
1795
|
* },
|
1776
1796
|
* {
|
1777
|
-
* // disable editing cells through cell editors for
|
1797
|
+
* // disable editing cells through cell editors for each cell of this column
|
1778
1798
|
* editor: false
|
1779
1799
|
* }
|
1780
1800
|
* ]
|
1781
1801
|
* ```
|
1782
1802
|
*/
|
1783
1803
|
editor: void 0,
|
1784
|
-
|
1785
1804
|
/**
|
1786
1805
|
* The `enterBeginsEditing` option configures the action of the <kbd>**Enter**</kbd> key.
|
1787
1806
|
*
|
@@ -1811,7 +1830,6 @@ var _default = function _default() {
|
|
1811
1830
|
* ```
|
1812
1831
|
*/
|
1813
1832
|
enterBeginsEditing: true,
|
1814
|
-
|
1815
1833
|
/**
|
1816
1834
|
* The `enterMoves` option configures the action of the <kbd>**Enter**</kbd> key.
|
1817
1835
|
*
|
@@ -1855,7 +1873,6 @@ var _default = function _default() {
|
|
1855
1873
|
col: 0,
|
1856
1874
|
row: 1
|
1857
1875
|
},
|
1858
|
-
|
1859
1876
|
/**
|
1860
1877
|
* The `fillHandle` option configures the [Autofill](@/api/autofill.md) plugin.
|
1861
1878
|
*
|
@@ -1915,7 +1932,6 @@ var _default = function _default() {
|
|
1915
1932
|
fillHandle: {
|
1916
1933
|
autoInsertRow: false
|
1917
1934
|
},
|
1918
|
-
|
1919
1935
|
/**
|
1920
1936
|
* The `filter` option configures whether [`autocomplete`](@/guides/cell-types/autocomplete-cell-type.md) cells'
|
1921
1937
|
* lists are updated by the end user's input.
|
@@ -1940,7 +1956,7 @@ var _default = function _default() {
|
|
1940
1956
|
* @example
|
1941
1957
|
* ```js
|
1942
1958
|
* columns: [{
|
1943
|
-
* // set the `type` of
|
1959
|
+
* // set the `type` of each cell in this column to `autocomplete`
|
1944
1960
|
* type: 'autocomplete',
|
1945
1961
|
* // set options available in every `autocomplete` cell of this column
|
1946
1962
|
* source: ['A', 'B', 'C'],
|
@@ -1952,7 +1968,6 @@ var _default = function _default() {
|
|
1952
1968
|
* ```
|
1953
1969
|
*/
|
1954
1970
|
filter: true,
|
1955
|
-
|
1956
1971
|
/**
|
1957
1972
|
* The `filteringCaseSensitive` option configures whether [`autocomplete`](@/guides/cell-types/autocomplete-cell-type.md) cells'
|
1958
1973
|
* input is case-sensitive.
|
@@ -1987,7 +2002,6 @@ var _default = function _default() {
|
|
1987
2002
|
* ```
|
1988
2003
|
*/
|
1989
2004
|
filteringCaseSensitive: false,
|
1990
|
-
|
1991
2005
|
/**
|
1992
2006
|
* The `filters` option configures the [`Filters`](@/api/filters.md) plugin.
|
1993
2007
|
*
|
@@ -2015,7 +2029,6 @@ var _default = function _default() {
|
|
2015
2029
|
* ```
|
2016
2030
|
*/
|
2017
2031
|
filters: void 0,
|
2018
|
-
|
2019
2032
|
/**
|
2020
2033
|
* `fixedColumnsLeft` is a legacy option.
|
2021
2034
|
*
|
@@ -2040,7 +2053,6 @@ var _default = function _default() {
|
|
2040
2053
|
* ```
|
2041
2054
|
*/
|
2042
2055
|
fixedColumnsLeft: 0,
|
2043
|
-
|
2044
2056
|
/**
|
2045
2057
|
* If your grid's [layout direction](@/guides/internationalization/layout-direction.md) is LTR (default), the `fixedColumnsStart` option sets the number of [frozen columns](@/guides/columns/column-freezing.md) at the left-hand edge of the grid.
|
2046
2058
|
*
|
@@ -2079,7 +2091,6 @@ var _default = function _default() {
|
|
2079
2091
|
* ```
|
2080
2092
|
*/
|
2081
2093
|
fixedColumnsStart: 0,
|
2082
|
-
|
2083
2094
|
/**
|
2084
2095
|
* The `fixedRowsBottom` option sets the number of [frozen rows](@/guides/rows/row-freezing.md)
|
2085
2096
|
* at the bottom of the grid.
|
@@ -2099,7 +2110,6 @@ var _default = function _default() {
|
|
2099
2110
|
* ```
|
2100
2111
|
*/
|
2101
2112
|
fixedRowsBottom: 0,
|
2102
|
-
|
2103
2113
|
/**
|
2104
2114
|
* The `fixedRowsTop` option sets the number of [frozen rows](@/guides/rows/row-freezing.md) at the top of the grid.
|
2105
2115
|
*
|
@@ -2118,7 +2128,6 @@ var _default = function _default() {
|
|
2118
2128
|
* ```
|
2119
2129
|
*/
|
2120
2130
|
fixedRowsTop: 0,
|
2121
|
-
|
2122
2131
|
/**
|
2123
2132
|
* The `formulas` option configures the [`Formulas`](@/api/formulas.md) plugin.
|
2124
2133
|
*
|
@@ -2198,7 +2207,6 @@ var _default = function _default() {
|
|
2198
2207
|
* ```
|
2199
2208
|
*/
|
2200
2209
|
formulas: void 0,
|
2201
|
-
|
2202
2210
|
/**
|
2203
2211
|
* The `fragmentSelection` option configures text selection settings.
|
2204
2212
|
*
|
@@ -2225,7 +2233,6 @@ var _default = function _default() {
|
|
2225
2233
|
* ```
|
2226
2234
|
*/
|
2227
2235
|
fragmentSelection: false,
|
2228
|
-
|
2229
2236
|
/**
|
2230
2237
|
* The `height` option configures the height of your grid.
|
2231
2238
|
*
|
@@ -2260,7 +2267,6 @@ var _default = function _default() {
|
|
2260
2267
|
* ```
|
2261
2268
|
*/
|
2262
2269
|
height: void 0,
|
2263
|
-
|
2264
2270
|
/**
|
2265
2271
|
* The `hiddenColumns` option configures the [`HiddenColumns`](@/api/hiddenColumns.md) plugin.
|
2266
2272
|
*
|
@@ -2306,7 +2312,6 @@ var _default = function _default() {
|
|
2306
2312
|
* ```
|
2307
2313
|
*/
|
2308
2314
|
hiddenColumns: void 0,
|
2309
|
-
|
2310
2315
|
/**
|
2311
2316
|
* The `hiddenRows` option configures the [`HiddenRows`](@/api/hiddenRows.md) plugin.
|
2312
2317
|
*
|
@@ -2352,7 +2357,6 @@ var _default = function _default() {
|
|
2352
2357
|
* ```
|
2353
2358
|
*/
|
2354
2359
|
hiddenRows: void 0,
|
2355
|
-
|
2356
2360
|
/**
|
2357
2361
|
* The `invalidCellClassName` option lets you add a CSS class name to cells
|
2358
2362
|
* that were marked as `invalid` by the [cell validator](@/guides/cell-functions/cell-validator.md).
|
@@ -2382,7 +2386,6 @@ var _default = function _default() {
|
|
2382
2386
|
* ```
|
2383
2387
|
*/
|
2384
2388
|
invalidCellClassName: 'htInvalid',
|
2385
|
-
|
2386
2389
|
/**
|
2387
2390
|
* The `isEmptyCol` option lets you define your own custom method
|
2388
2391
|
* for checking if a column at a given visual index is empty.
|
@@ -2403,23 +2406,18 @@ var _default = function _default() {
|
|
2403
2406
|
* ...
|
2404
2407
|
* },
|
2405
2408
|
* ```
|
2406
|
-
*/
|
2407
|
-
isEmptyCol: function isEmptyCol(col) {
|
2409
|
+
*/isEmptyCol: function isEmptyCol(col) {
|
2408
2410
|
var row;
|
2409
2411
|
var rowLen;
|
2410
2412
|
var value;
|
2411
|
-
|
2412
2413
|
for (row = 0, rowLen = this.countRows(); row < rowLen; row++) {
|
2413
2414
|
value = this.getDataAtCell(row, col);
|
2414
|
-
|
2415
2415
|
if ((0, _mixed.isEmpty)(value) === false) {
|
2416
2416
|
return false;
|
2417
2417
|
}
|
2418
2418
|
}
|
2419
|
-
|
2420
2419
|
return true;
|
2421
2420
|
},
|
2422
|
-
|
2423
2421
|
/**
|
2424
2422
|
* The `isEmptyRow` option lets you define your own custom method
|
2425
2423
|
* for checking if a row at a given visual index is empty.
|
@@ -2440,29 +2438,23 @@ var _default = function _default() {
|
|
2440
2438
|
* ...
|
2441
2439
|
* },
|
2442
2440
|
* ```
|
2443
|
-
*/
|
2444
|
-
isEmptyRow: function isEmptyRow(row) {
|
2441
|
+
*/isEmptyRow: function isEmptyRow(row) {
|
2445
2442
|
var col;
|
2446
2443
|
var colLen;
|
2447
2444
|
var value;
|
2448
2445
|
var meta;
|
2449
|
-
|
2450
2446
|
for (col = 0, colLen = this.countCols(); col < colLen; col++) {
|
2451
2447
|
value = this.getDataAtCell(row, col);
|
2452
|
-
|
2453
2448
|
if ((0, _mixed.isEmpty)(value) === false) {
|
2454
2449
|
if (_typeof(value) === 'object') {
|
2455
2450
|
meta = this.getCellMeta(row, col);
|
2456
2451
|
return (0, _object.isObjectEqual)(this.getSchema()[meta.prop], value);
|
2457
2452
|
}
|
2458
|
-
|
2459
2453
|
return false;
|
2460
2454
|
}
|
2461
2455
|
}
|
2462
|
-
|
2463
2456
|
return true;
|
2464
2457
|
},
|
2465
|
-
|
2466
2458
|
/**
|
2467
2459
|
* @description
|
2468
2460
|
* The `label` option configures [`checkbox`](@/guides/cell-types/checkbox-cell-type.md) cells` labels.
|
@@ -2494,7 +2486,6 @@ var _default = function _default() {
|
|
2494
2486
|
* ```
|
2495
2487
|
*/
|
2496
2488
|
label: void 0,
|
2497
|
-
|
2498
2489
|
/**
|
2499
2490
|
* The `language` option configures Handsontable's [language](@/guides/internationalization/language.md) settings.
|
2500
2491
|
*
|
@@ -2539,13 +2530,12 @@ var _default = function _default() {
|
|
2539
2530
|
* ```
|
2540
2531
|
*/
|
2541
2532
|
language: 'en-US',
|
2542
|
-
|
2543
2533
|
/**
|
2544
2534
|
* The `layoutDirection` option configures whether Handsontable renders from the left to the right, or from the right to the left.
|
2545
2535
|
*
|
2546
2536
|
* You can set the layout direction only at Handsontable's [initialization](@/guides/getting-started/installation.md#initialize-handsontable). Any change of the `layoutDirection` option after the initialization (e.g. using the [`updateSettings()`](@/api/core.md#updatesettings) method) is ignored.
|
2547
2537
|
*
|
2548
|
-
* You can set the `layoutDirection` option only [for the entire grid](@/guides/getting-started/
|
2538
|
+
* You can set the `layoutDirection` option only [for the entire grid](@/guides/getting-started/configuration-options.md#setting-grid-options).
|
2549
2539
|
* You can't set it for individual columns, rows, or cells.
|
2550
2540
|
*
|
2551
2541
|
* You can set the `layoutDirection` option to one of the following strings:
|
@@ -2585,7 +2575,6 @@ var _default = function _default() {
|
|
2585
2575
|
* ```
|
2586
2576
|
*/
|
2587
2577
|
layoutDirection: 'inherit',
|
2588
|
-
|
2589
2578
|
/**
|
2590
2579
|
* The `licenseKey` option sets your Handsontable license key.
|
2591
2580
|
*
|
@@ -2614,7 +2603,6 @@ var _default = function _default() {
|
|
2614
2603
|
* ```
|
2615
2604
|
*/
|
2616
2605
|
licenseKey: void 0,
|
2617
|
-
|
2618
2606
|
/**
|
2619
2607
|
* The `locale` option configures Handsontable's [locale](@/guides/internationalization/locale.md) settings.
|
2620
2608
|
*
|
@@ -2651,7 +2639,6 @@ var _default = function _default() {
|
|
2651
2639
|
* ```
|
2652
2640
|
*/
|
2653
2641
|
locale: 'en-US',
|
2654
|
-
|
2655
2642
|
/**
|
2656
2643
|
* The `manualColumnFreeze` option configures the [`ManualColumnFreeze`](@/api/manualColumnFreeze.md) plugin.
|
2657
2644
|
*
|
@@ -2677,7 +2664,6 @@ var _default = function _default() {
|
|
2677
2664
|
* ```
|
2678
2665
|
*/
|
2679
2666
|
manualColumnFreeze: void 0,
|
2680
|
-
|
2681
2667
|
/**
|
2682
2668
|
* The `manualColumnMove` option configures the [`ManualColumnMove`](@/api/manualColumnMove.md) plugin.
|
2683
2669
|
*
|
@@ -2710,7 +2696,6 @@ var _default = function _default() {
|
|
2710
2696
|
* ```
|
2711
2697
|
*/
|
2712
2698
|
manualColumnMove: void 0,
|
2713
|
-
|
2714
2699
|
/**
|
2715
2700
|
* @description
|
2716
2701
|
* The `manualColumnResize` option configures the [`ManualColumnResize`](@/api/manualColumnResize.md) plugin.
|
@@ -2744,7 +2729,6 @@ var _default = function _default() {
|
|
2744
2729
|
* ```
|
2745
2730
|
*/
|
2746
2731
|
manualColumnResize: void 0,
|
2747
|
-
|
2748
2732
|
/**
|
2749
2733
|
* @description
|
2750
2734
|
* The `manualRowMove` option configures the [`ManualRowMove`](@/api/manualRowMove.md) plugin.
|
@@ -2778,7 +2762,6 @@ var _default = function _default() {
|
|
2778
2762
|
* ```
|
2779
2763
|
*/
|
2780
2764
|
manualRowMove: void 0,
|
2781
|
-
|
2782
2765
|
/**
|
2783
2766
|
* @description
|
2784
2767
|
* The `manualRowResize` option configures the [`ManualRowResize`](@/api/manualRowResize.md) plugin.
|
@@ -2812,7 +2795,6 @@ var _default = function _default() {
|
|
2812
2795
|
* ```
|
2813
2796
|
*/
|
2814
2797
|
manualRowResize: void 0,
|
2815
|
-
|
2816
2798
|
/**
|
2817
2799
|
* The `maxCols` option sets a maximum number of columns.
|
2818
2800
|
*
|
@@ -2833,7 +2815,6 @@ var _default = function _default() {
|
|
2833
2815
|
* ```
|
2834
2816
|
*/
|
2835
2817
|
maxCols: Infinity,
|
2836
|
-
|
2837
2818
|
/**
|
2838
2819
|
* The `maxRows` option sets a maximum number of rows.
|
2839
2820
|
*
|
@@ -2854,7 +2835,6 @@ var _default = function _default() {
|
|
2854
2835
|
* ```
|
2855
2836
|
*/
|
2856
2837
|
maxRows: Infinity,
|
2857
|
-
|
2858
2838
|
/**
|
2859
2839
|
* @description
|
2860
2840
|
* The `mergeCells` option configures the [`MergeCells`](@/api/mergeCells.md) plugin.
|
@@ -2903,7 +2883,6 @@ var _default = function _default() {
|
|
2903
2883
|
* ```
|
2904
2884
|
*/
|
2905
2885
|
mergeCells: false,
|
2906
|
-
|
2907
2886
|
/**
|
2908
2887
|
* The `minCols` option sets a minimum number of columns.
|
2909
2888
|
*
|
@@ -2931,7 +2910,6 @@ var _default = function _default() {
|
|
2931
2910
|
* ```
|
2932
2911
|
*/
|
2933
2912
|
minCols: 0,
|
2934
|
-
|
2935
2913
|
/**
|
2936
2914
|
* The `minRows` option sets a minimum number of rows.
|
2937
2915
|
*
|
@@ -2952,7 +2930,6 @@ var _default = function _default() {
|
|
2952
2930
|
* ```
|
2953
2931
|
*/
|
2954
2932
|
minRows: 0,
|
2955
|
-
|
2956
2933
|
/**
|
2957
2934
|
* The `minSpareCols` option sets a minimum number of empty columns
|
2958
2935
|
* at the grid's right-hand end.
|
@@ -2981,7 +2958,6 @@ var _default = function _default() {
|
|
2981
2958
|
* ```
|
2982
2959
|
*/
|
2983
2960
|
minSpareCols: 0,
|
2984
|
-
|
2985
2961
|
/**
|
2986
2962
|
* The `minSpareRows` option sets a minimum number of empty rows
|
2987
2963
|
* at the bottom of the grid.
|
@@ -3003,7 +2979,6 @@ var _default = function _default() {
|
|
3003
2979
|
* ```
|
3004
2980
|
*/
|
3005
2981
|
minSpareRows: 0,
|
3006
|
-
|
3007
2982
|
/**
|
3008
2983
|
* @description
|
3009
2984
|
* The `multiColumnSorting` option configures the [`MultiColumnSorting`](@/api/columnSorting.md) plugin.
|
@@ -3082,14 +3057,21 @@ var _default = function _default() {
|
|
3082
3057
|
* ```
|
3083
3058
|
*/
|
3084
3059
|
multiColumnSorting: void 0,
|
3085
|
-
|
3086
3060
|
/**
|
3087
3061
|
* @description
|
3088
3062
|
* The `nestedHeaders` option configures the [`NestedHeaders`](@/api/nestedHeaders.md) plugin.
|
3089
3063
|
*
|
3090
|
-
* You can set the `nestedHeaders` option to
|
3091
|
-
*
|
3092
|
-
*
|
3064
|
+
* You can set the `nestedHeaders` option to one of the following:
|
3065
|
+
*
|
3066
|
+
* | Setting | Description |
|
3067
|
+
* | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
3068
|
+
* | `false` (default) | Disable the [`NestedHeaders`](@/api/nestedHeaders.md) plugin |
|
3069
|
+
* | `true` | - Enable the [`NestedHeaders`](@/api/nestedHeaders.md) plugin<br>- Don't configure any nested headers |
|
3070
|
+
* | Array of arrays | - Enable the [`NestedHeaders`](@/api/nestedHeaders.md) plugin<br>- Configure headers that are nested on Handsontable's initialization |
|
3071
|
+
*
|
3072
|
+
* If you set the `nestedHeaders` option to an array of arrays, each array configures one set of nested headers.
|
3073
|
+
*
|
3074
|
+
* Each array element configures one header, and can be one of the following:
|
3093
3075
|
*
|
3094
3076
|
* | Array element | Description |
|
3095
3077
|
* | ------------- | -------------------------------------------------------------------------------------------- |
|
@@ -3101,7 +3083,7 @@ var _default = function _default() {
|
|
3101
3083
|
* - [Column groups: Nested headers](@/guides/columns/column-groups.md#nested-headers)
|
3102
3084
|
*
|
3103
3085
|
* @memberof Options#
|
3104
|
-
* @type {Array[]}
|
3086
|
+
* @type {boolean|Array[]}
|
3105
3087
|
* @default undefined
|
3106
3088
|
* @category NestedHeaders
|
3107
3089
|
*
|
@@ -3115,7 +3097,6 @@ var _default = function _default() {
|
|
3115
3097
|
* ```
|
3116
3098
|
*/
|
3117
3099
|
nestedHeaders: void 0,
|
3118
|
-
|
3119
3100
|
/**
|
3120
3101
|
* @description
|
3121
3102
|
* The `nestedRows` option configures the [`NestedRows`](@/api/nestedRows.md) plugin.
|
@@ -3142,10 +3123,9 @@ var _default = function _default() {
|
|
3142
3123
|
* @category NestedRows
|
3143
3124
|
*/
|
3144
3125
|
nestedRows: void 0,
|
3145
|
-
|
3146
3126
|
/**
|
3147
3127
|
* The `noWordWrapClassName` option lets you add a CSS class name
|
3148
|
-
* to
|
3128
|
+
* to each cell that has the [`wordWrap`](#wordWrap) option set to `false`.
|
3149
3129
|
*
|
3150
3130
|
* Read more:
|
3151
3131
|
* - [`wordWrap`](#wordWrap)
|
@@ -3167,15 +3147,15 @@ var _default = function _default() {
|
|
3167
3147
|
* @example
|
3168
3148
|
* ```js
|
3169
3149
|
* // add an `is-noWrapCell` CSS class name
|
3170
|
-
* // to
|
3150
|
+
* // to each cell that doesn't wrap content
|
3171
3151
|
* noWordWrapClassName: 'is-noWrapCell',
|
3172
3152
|
* ```
|
3173
3153
|
*/
|
3174
3154
|
noWordWrapClassName: 'htNoWrap',
|
3175
|
-
|
3176
3155
|
/**
|
3177
3156
|
* The `numericFormat` option configures the number format and the currency format
|
3178
|
-
* of [`numeric`](@/guides/cell-types/numeric-cell-type.md) cells` displayed output
|
3157
|
+
* of [`numeric`](@/guides/cell-types/numeric-cell-type.md) cells` displayed output
|
3158
|
+
* in the numeric cell renderer.
|
3179
3159
|
*
|
3180
3160
|
* You can set the `numericFormat` option to an object with the following properties:
|
3181
3161
|
*
|
@@ -3184,10 +3164,7 @@ var _default = function _default() {
|
|
3184
3164
|
* | `pattern` | All [`numbro.js` number formats](https://numbrojs.com/format.html#numbers) | Number format |
|
3185
3165
|
* | `culture` | All [`numbro.js` currency formats](https://numbrojs.com/format.html#currency) | Currency format |
|
3186
3166
|
*
|
3187
|
-
* The `numericFormat` option as no effect on
|
3188
|
-
* To enter numeric data into Handsontable, use:
|
3189
|
-
* - Either floats (separated by a dot, or a comma)
|
3190
|
-
* - Or integers
|
3167
|
+
* The `numericFormat` option as no effect on the numeric cell editor.
|
3191
3168
|
*
|
3192
3169
|
* In the source data, numeric data is stored as JavaScript numbers.
|
3193
3170
|
*
|
@@ -3205,7 +3182,7 @@ var _default = function _default() {
|
|
3205
3182
|
* ```js
|
3206
3183
|
* columns: [
|
3207
3184
|
* {
|
3208
|
-
* // set the `type` of
|
3185
|
+
* // set the `type` of each cell in this column to `numeric`
|
3209
3186
|
* type: 'numeric',
|
3210
3187
|
* // set the `numericFormat` option for every `numeric` cell of this column
|
3211
3188
|
* numericFormat: {
|
@@ -3219,7 +3196,6 @@ var _default = function _default() {
|
|
3219
3196
|
* ```
|
3220
3197
|
*/
|
3221
3198
|
numericFormat: void 0,
|
3222
|
-
|
3223
3199
|
/**
|
3224
3200
|
* If the `observeDOMVisibility` option is set to `true`,
|
3225
3201
|
* Handsontable rerenders every time it detects that the grid was made visible in the DOM.
|
@@ -3236,7 +3212,6 @@ var _default = function _default() {
|
|
3236
3212
|
* ```
|
3237
3213
|
*/
|
3238
3214
|
observeDOMVisibility: true,
|
3239
|
-
|
3240
3215
|
/**
|
3241
3216
|
* The `outsideClickDeselects` option determines what happens to the current [selection](@/guides/cell-features/selection.md)
|
3242
3217
|
* when you click outside of the grid.
|
@@ -3274,7 +3249,6 @@ var _default = function _default() {
|
|
3274
3249
|
* ```
|
3275
3250
|
*/
|
3276
3251
|
outsideClickDeselects: true,
|
3277
|
-
|
3278
3252
|
/**
|
3279
3253
|
* @description
|
3280
3254
|
* The `persistentState` option configures the [`PersistentState`](@/api/persistentState.md) plugin.
|
@@ -3302,7 +3276,6 @@ var _default = function _default() {
|
|
3302
3276
|
* ```
|
3303
3277
|
*/
|
3304
3278
|
persistentState: void 0,
|
3305
|
-
|
3306
3279
|
/**
|
3307
3280
|
* The `placeholder` option lets you display placeholder text in every empty cell.
|
3308
3281
|
*
|
@@ -3340,7 +3313,6 @@ var _default = function _default() {
|
|
3340
3313
|
* ```
|
3341
3314
|
*/
|
3342
3315
|
placeholder: void 0,
|
3343
|
-
|
3344
3316
|
/**
|
3345
3317
|
* The `placeholderCellClassName` option lets you add a CSS class name to cells
|
3346
3318
|
* that contain [`placeholder`](#placeholder) text.
|
@@ -3366,12 +3338,11 @@ var _default = function _default() {
|
|
3366
3338
|
* @example
|
3367
3339
|
* ```js
|
3368
3340
|
* // add a `has-placeholder` CSS class name
|
3369
|
-
* // to
|
3341
|
+
* // to each cell that contains `placeholder` text
|
3370
3342
|
* placeholderCellClassName: 'has-placeholder',
|
3371
3343
|
* ```
|
3372
3344
|
*/
|
3373
3345
|
placeholderCellClassName: 'htPlaceholder',
|
3374
|
-
|
3375
3346
|
/**
|
3376
3347
|
* The `preventOverflow` option configures preventing Handsontable
|
3377
3348
|
* from overflowing outside of its parent element.
|
@@ -3396,7 +3367,6 @@ var _default = function _default() {
|
|
3396
3367
|
* ```
|
3397
3368
|
*/
|
3398
3369
|
preventOverflow: false,
|
3399
|
-
|
3400
3370
|
/**
|
3401
3371
|
* The `preventWheel` option configures preventing the `wheel` event's default action
|
3402
3372
|
* on overlays.
|
@@ -3421,7 +3391,6 @@ var _default = function _default() {
|
|
3421
3391
|
* ```
|
3422
3392
|
*/
|
3423
3393
|
preventWheel: false,
|
3424
|
-
|
3425
3394
|
/**
|
3426
3395
|
* @description
|
3427
3396
|
* The `readOnly` option determines whether a cell, column or comment is editable or not.
|
@@ -3433,8 +3402,10 @@ var _default = function _default() {
|
|
3433
3402
|
* | `false` (default) | Set as editable |
|
3434
3403
|
* | `true` | - Set as read-only<br>- Add the [`readOnlyCellClassName`](#readOnlyCellClassName) CSS class name (by default: `htDimmed`) |
|
3435
3404
|
*
|
3405
|
+
* `readOnly` cells can't be changed by the [`populateFromArray()`](@/api/core.md#populatefromarray) method.
|
3406
|
+
*
|
3436
3407
|
* Read more:
|
3437
|
-
* - [Configuration options: Cascading configuration](@/guides/getting-started/
|
3408
|
+
* - [Configuration options: Cascading configuration](@/guides/getting-started/configuration-options.md#cascading-configuration)
|
3438
3409
|
*
|
3439
3410
|
* @memberof Options#
|
3440
3411
|
* @type {boolean}
|
@@ -3448,7 +3419,6 @@ var _default = function _default() {
|
|
3448
3419
|
* ```
|
3449
3420
|
*/
|
3450
3421
|
readOnly: false,
|
3451
|
-
|
3452
3422
|
/**
|
3453
3423
|
* The `readOnlyCellClassName` option lets you add a CSS class name to [read-only](#readOnly) cells.
|
3454
3424
|
*
|
@@ -3477,7 +3447,6 @@ var _default = function _default() {
|
|
3477
3447
|
* ```
|
3478
3448
|
*/
|
3479
3449
|
readOnlyCellClassName: 'htDimmed',
|
3480
|
-
|
3481
3450
|
/**
|
3482
3451
|
* The `renderAllRows` option configures Handsontable's [row virtualization](@/guides/rows/row-virtualization.md).
|
3483
3452
|
*
|
@@ -3503,7 +3472,6 @@ var _default = function _default() {
|
|
3503
3472
|
* ```
|
3504
3473
|
*/
|
3505
3474
|
renderAllRows: void 0,
|
3506
|
-
|
3507
3475
|
/**
|
3508
3476
|
* @description
|
3509
3477
|
* The `renderer` option sets a [cell renderer](@/guides/cell-functions/cell-renderer.md) for a cell.
|
@@ -3532,7 +3500,7 @@ var _default = function _default() {
|
|
3532
3500
|
* Read more:
|
3533
3501
|
* - [Cell renderer](@/guides/cell-functions/cell-renderer.md)
|
3534
3502
|
* - [Cell type](@/guides/cell-types/cell-type.md)
|
3535
|
-
* - [Configuration options: Cascading configuration](@/guides/getting-started/
|
3503
|
+
* - [Configuration options: Cascading configuration](@/guides/getting-started/configuration-options.md#cascading-configuration)
|
3536
3504
|
* - [`type`](#type)
|
3537
3505
|
*
|
3538
3506
|
* @memberof Options#
|
@@ -3542,7 +3510,7 @@ var _default = function _default() {
|
|
3542
3510
|
*
|
3543
3511
|
* @example
|
3544
3512
|
* ```js
|
3545
|
-
* // use the `numeric` renderer for
|
3513
|
+
* // use the `numeric` renderer for each cell of the entire grid
|
3546
3514
|
* renderer: `'numeric'`,
|
3547
3515
|
*
|
3548
3516
|
* // add a custom renderer function
|
@@ -3554,18 +3522,17 @@ var _default = function _default() {
|
|
3554
3522
|
* // apply the `renderer` option to individual columns
|
3555
3523
|
* columns: [
|
3556
3524
|
* {
|
3557
|
-
* // use the `autocomplete` renderer for
|
3525
|
+
* // use the `autocomplete` renderer for each cell of this column
|
3558
3526
|
* renderer: 'autocomplete'
|
3559
3527
|
* },
|
3560
3528
|
* {
|
3561
|
-
* // use the `myCustomRenderer` renderer for
|
3529
|
+
* // use the `myCustomRenderer` renderer for each cell of this column
|
3562
3530
|
* renderer: 'myCustomRenderer'
|
3563
3531
|
* }
|
3564
3532
|
* ]
|
3565
3533
|
* ```
|
3566
3534
|
*/
|
3567
3535
|
renderer: void 0,
|
3568
|
-
|
3569
3536
|
/**
|
3570
3537
|
* The `rowHeaders` option configures your grid's row headers.
|
3571
3538
|
*
|
@@ -3601,7 +3568,6 @@ var _default = function _default() {
|
|
3601
3568
|
* ```
|
3602
3569
|
*/
|
3603
3570
|
rowHeaders: void 0,
|
3604
|
-
|
3605
3571
|
/**
|
3606
3572
|
* @description
|
3607
3573
|
* The `rowHeaderWidth` option configures the width of row headers.
|
@@ -3628,7 +3594,6 @@ var _default = function _default() {
|
|
3628
3594
|
* ```
|
3629
3595
|
*/
|
3630
3596
|
rowHeaderWidth: void 0,
|
3631
|
-
|
3632
3597
|
/**
|
3633
3598
|
* The `rowHeights` option sets rows' heights, in pixels.
|
3634
3599
|
*
|
@@ -3675,7 +3640,6 @@ var _default = function _default() {
|
|
3675
3640
|
* ```
|
3676
3641
|
*/
|
3677
3642
|
rowHeights: void 0,
|
3678
|
-
|
3679
3643
|
/**
|
3680
3644
|
* @description
|
3681
3645
|
* The `search` option configures the [`Search`](@/api/search.md) plugin.
|
@@ -3727,7 +3691,6 @@ var _default = function _default() {
|
|
3727
3691
|
* ```
|
3728
3692
|
*/
|
3729
3693
|
search: false,
|
3730
|
-
|
3731
3694
|
/**
|
3732
3695
|
* @description
|
3733
3696
|
* The `selectionMode` option configures how [selection](@/guides/cell-features/selection.md) works.
|
@@ -3761,7 +3724,6 @@ var _default = function _default() {
|
|
3761
3724
|
* ```
|
3762
3725
|
*/
|
3763
3726
|
selectionMode: 'multiple',
|
3764
|
-
|
3765
3727
|
/**
|
3766
3728
|
* The `selectOptions` option configures options that the end user can choose from in [`select`](@/guides/cell-types/select-cell-type.md) cells.
|
3767
3729
|
*
|
@@ -3785,7 +3747,7 @@ var _default = function _default() {
|
|
3785
3747
|
* ```js
|
3786
3748
|
* columns: [
|
3787
3749
|
* {
|
3788
|
-
* // set the `type` of
|
3750
|
+
* // set the `type` of each cell in this column to `select`
|
3789
3751
|
* type: 'select',
|
3790
3752
|
* // set the first option's value and label to `A`
|
3791
3753
|
* // set the second option's value and label to `B`
|
@@ -3793,7 +3755,7 @@ var _default = function _default() {
|
|
3793
3755
|
* selectOptions: ['A', 'B', 'C'],
|
3794
3756
|
* },
|
3795
3757
|
* {
|
3796
|
-
* // set the `type` of
|
3758
|
+
* // set the `type` of each cell in this column to `select`
|
3797
3759
|
* type: 'select',
|
3798
3760
|
* selectOptions: {
|
3799
3761
|
* // set the first option's value to `value1` and label to `Label 1`
|
@@ -3805,7 +3767,7 @@ var _default = function _default() {
|
|
3805
3767
|
* },
|
3806
3768
|
* },
|
3807
3769
|
* {
|
3808
|
-
* // set the `type` of
|
3770
|
+
* // set the `type` of each cell in this column to `select`
|
3809
3771
|
* type: 'select',
|
3810
3772
|
* // set `selectOption` to a function that returns available options as an object
|
3811
3773
|
* selectOptions(visualRow, visualColumn, prop) {
|
@@ -3819,7 +3781,6 @@ var _default = function _default() {
|
|
3819
3781
|
* ```
|
3820
3782
|
*/
|
3821
3783
|
selectOptions: void 0,
|
3822
|
-
|
3823
3784
|
/**
|
3824
3785
|
* @description
|
3825
3786
|
* The `skipColumnOnPaste` option determines whether you can paste data into a given column.
|
@@ -3834,7 +3795,7 @@ var _default = function _default() {
|
|
3834
3795
|
* | `true` | - Disable pasting data into this column<br>- On pasting, paste data into the next column to the right |
|
3835
3796
|
*
|
3836
3797
|
* Read more:
|
3837
|
-
* - [Configuration options: Setting column options](@/guides/getting-started/
|
3798
|
+
* - [Configuration options: Setting column options](@/guides/getting-started/configuration-options.md#setting-column-options)
|
3838
3799
|
*
|
3839
3800
|
* @memberof Options#
|
3840
3801
|
* @type {boolean}
|
@@ -3852,7 +3813,6 @@ var _default = function _default() {
|
|
3852
3813
|
* ```
|
3853
3814
|
*/
|
3854
3815
|
skipColumnOnPaste: false,
|
3855
|
-
|
3856
3816
|
/**
|
3857
3817
|
* @description
|
3858
3818
|
*
|
@@ -3868,7 +3828,7 @@ var _default = function _default() {
|
|
3868
3828
|
* | `true` | - Disable pasting data into this row<br>- On pasting, paste data into the row below |
|
3869
3829
|
*
|
3870
3830
|
* Read more:
|
3871
|
-
* - [Configuration options: Setting row options](@/guides/getting-started/
|
3831
|
+
* - [Configuration options: Setting row options](@/guides/getting-started/configuration-options.md#setting-row-options)
|
3872
3832
|
*
|
3873
3833
|
* @memberof Options#
|
3874
3834
|
* @type {boolean}
|
@@ -3890,7 +3850,6 @@ var _default = function _default() {
|
|
3890
3850
|
* ```
|
3891
3851
|
*/
|
3892
3852
|
skipRowOnPaste: false,
|
3893
|
-
|
3894
3853
|
/**
|
3895
3854
|
* The `sortByRelevance` option configures whether [`autocomplete`](@/guides/cell-types/autocomplete-cell-type.md) cells'
|
3896
3855
|
* lists are sorted in the same order as provided in the [`source`](#source) option.
|
@@ -3914,7 +3873,7 @@ var _default = function _default() {
|
|
3914
3873
|
* @example
|
3915
3874
|
* ```js
|
3916
3875
|
* columns: [{
|
3917
|
-
* // set the `type` of
|
3876
|
+
* // set the `type` of each cell in this column to `autocomplete`
|
3918
3877
|
* type: 'autocomplete',
|
3919
3878
|
* // set options available in every `autocomplete` cell of this column
|
3920
3879
|
* source: ['D', 'C', 'B', 'A'],
|
@@ -3924,7 +3883,6 @@ var _default = function _default() {
|
|
3924
3883
|
* ```
|
3925
3884
|
*/
|
3926
3885
|
sortByRelevance: true,
|
3927
|
-
|
3928
3886
|
/**
|
3929
3887
|
* The `source` option sets options available in [`autocomplete`](@/guides/cell-types/autocomplete-cell-type.md)
|
3930
3888
|
* and [`dropdown`](@/guides/cell-types/dropdown-cell-type.md) cells.
|
@@ -3951,7 +3909,7 @@ var _default = function _default() {
|
|
3951
3909
|
* ```js
|
3952
3910
|
* // set `source` to an array
|
3953
3911
|
* columns: [{
|
3954
|
-
* // set the `type` of
|
3912
|
+
* // set the `type` of each cell in this column to `autocomplete`
|
3955
3913
|
* type: 'autocomplete',
|
3956
3914
|
* // set options available in every `autocomplete` cell of this column
|
3957
3915
|
* source: ['A', 'B', 'C', 'D']
|
@@ -3959,7 +3917,7 @@ var _default = function _default() {
|
|
3959
3917
|
*
|
3960
3918
|
* // set `source` to a function
|
3961
3919
|
* columns: [{
|
3962
|
-
* // set the `type` of
|
3920
|
+
* // set the `type` of each cell in this column to `autocomplete`
|
3963
3921
|
* type: 'autocomplete',
|
3964
3922
|
* // for every `autocomplete` cell in this column, fetch data from an external source
|
3965
3923
|
* source(query, callback) {
|
@@ -3971,7 +3929,6 @@ var _default = function _default() {
|
|
3971
3929
|
* ```
|
3972
3930
|
*/
|
3973
3931
|
source: void 0,
|
3974
|
-
|
3975
3932
|
/**
|
3976
3933
|
* @description
|
3977
3934
|
* If the [`data`](#data) option is not set, the `startCols` option sets the initial number of empty columns.
|
@@ -3990,7 +3947,6 @@ var _default = function _default() {
|
|
3990
3947
|
* ```
|
3991
3948
|
*/
|
3992
3949
|
startCols: 5,
|
3993
|
-
|
3994
3950
|
/**
|
3995
3951
|
* @description
|
3996
3952
|
* If the [`data`](#data) option is not set, the `startRows` option sets the initial number of empty rows.
|
@@ -4009,7 +3965,6 @@ var _default = function _default() {
|
|
4009
3965
|
* ```
|
4010
3966
|
*/
|
4011
3967
|
startRows: 5,
|
4012
|
-
|
4013
3968
|
/**
|
4014
3969
|
* @description
|
4015
3970
|
* The `stretchH` option determines what happens when the declared grid width
|
@@ -4039,7 +3994,6 @@ var _default = function _default() {
|
|
4039
3994
|
* ```
|
4040
3995
|
*/
|
4041
3996
|
stretchH: 'none',
|
4042
|
-
|
4043
3997
|
/**
|
4044
3998
|
* The `strict` option configures the behavior of [`autocomplete`](@/guides/cell-types/autocomplete-cell-type.md) cells.
|
4045
3999
|
*
|
@@ -4063,7 +4017,7 @@ var _default = function _default() {
|
|
4063
4017
|
* ```js
|
4064
4018
|
* columns: [
|
4065
4019
|
* {
|
4066
|
-
* // set the `type` of
|
4020
|
+
* // set the `type` of each cell in this column to `autocomplete`
|
4067
4021
|
* type: 'autocomplete',
|
4068
4022
|
* // set options available in every `autocomplete` cell of this column
|
4069
4023
|
* source: ['A', 'B', 'C'],
|
@@ -4074,7 +4028,6 @@ var _default = function _default() {
|
|
4074
4028
|
* ```
|
4075
4029
|
*/
|
4076
4030
|
strict: void 0,
|
4077
|
-
|
4078
4031
|
/**
|
4079
4032
|
* The `tableClassName` option lets you add CSS class names
|
4080
4033
|
* to every Handsontable instance inside the `container` element.
|
@@ -4115,7 +4068,6 @@ var _default = function _default() {
|
|
4115
4068
|
* ```
|
4116
4069
|
*/
|
4117
4070
|
tableClassName: void 0,
|
4118
|
-
|
4119
4071
|
/**
|
4120
4072
|
* The `tabMoves` option configures the action of the <kbd>**Tab**</kbd> key.
|
4121
4073
|
*
|
@@ -4150,7 +4102,6 @@ var _default = function _default() {
|
|
4150
4102
|
row: 0,
|
4151
4103
|
col: 1
|
4152
4104
|
},
|
4153
|
-
|
4154
4105
|
/**
|
4155
4106
|
* @description
|
4156
4107
|
* The `title` option configures [column header](@/guides/columns/column-header.md) names.
|
@@ -4183,7 +4134,6 @@ var _default = function _default() {
|
|
4183
4134
|
* ```
|
4184
4135
|
*/
|
4185
4136
|
title: void 0,
|
4186
|
-
|
4187
4137
|
/**
|
4188
4138
|
* The `trimDropdown` option configures the width of the [`autocomplete`](@/guides/cell-types/autocomplete-cell-type.md)
|
4189
4139
|
* and [`dropdown`](@/guides/cell-types/dropdown-cell-type.md) lists.
|
@@ -4209,13 +4159,13 @@ var _default = function _default() {
|
|
4209
4159
|
* columns: [
|
4210
4160
|
* {
|
4211
4161
|
* type: 'autocomplete',
|
4212
|
-
* // for
|
4162
|
+
* // for each cell of this column
|
4213
4163
|
* // make the `autocomplete` list's width the same as the edited cell's width
|
4214
4164
|
* trimDropdown: true,
|
4215
4165
|
* },
|
4216
4166
|
* {
|
4217
4167
|
* type: 'dropdown',
|
4218
|
-
* // for
|
4168
|
+
* // for each cell of this column
|
4219
4169
|
* // scale the `dropdown` list's width to the list's content
|
4220
4170
|
* trimDropdown: false,
|
4221
4171
|
* }
|
@@ -4223,18 +4173,17 @@ var _default = function _default() {
|
|
4223
4173
|
* ```
|
4224
4174
|
*/
|
4225
4175
|
trimDropdown: true,
|
4226
|
-
|
4227
4176
|
/**
|
4228
4177
|
* @description
|
4229
4178
|
* The `trimRows` option configures the [`TrimRows`](@/api/trimRows.md) plugin.
|
4230
4179
|
*
|
4231
4180
|
* You can set the `trimRows` option to one of the following:
|
4232
4181
|
*
|
4233
|
-
* | Setting
|
4234
|
-
* |
|
4235
|
-
* | `false`
|
4236
|
-
* | `true`
|
4237
|
-
* | An array | - Enable the [`TrimRows`](@/api/trimRows.md) plugin<br>- Trim selected rows at initialization |
|
4182
|
+
* | Setting | Description |
|
4183
|
+
* | -------------------------------- | --------------------------------------------------------------------------------------------- |
|
4184
|
+
* | `false` | Disable the [`TrimRows`](@/api/trimRows.md) plugin |
|
4185
|
+
* | `true` | Enable the [`TrimRows`](@/api/trimRows.md) plugin |
|
4186
|
+
* | An array of physical row indexes | - Enable the [`TrimRows`](@/api/trimRows.md) plugin<br>- Trim selected rows at initialization |
|
4238
4187
|
*
|
4239
4188
|
* Read more:
|
4240
4189
|
* - [Plugins: `TrimRows`](@/api/trimRows.md)
|
@@ -4251,23 +4200,23 @@ var _default = function _default() {
|
|
4251
4200
|
* trimRows: true,
|
4252
4201
|
*
|
4253
4202
|
* // enable the `TrimRows` plugin
|
4254
|
-
* // trim rows 5, 10, and 15
|
4203
|
+
* // at Handsontable's initialization, trim rows 5, 10, and 15
|
4255
4204
|
* trimRows: [5, 10, 15],
|
4256
4205
|
* ```
|
4257
4206
|
*/
|
4258
4207
|
trimRows: void 0,
|
4259
|
-
|
4260
4208
|
/**
|
4261
|
-
* The `trimWhitespace` option configures automatic whitespace removal.
|
4209
|
+
* The `trimWhitespace` option configures automatic whitespace removal. This option
|
4210
|
+
* affects the cell renderer and the cell editor.
|
4262
4211
|
*
|
4263
4212
|
* You can set the `trimWhitespace` option to one of the following:
|
4264
4213
|
*
|
4265
4214
|
* | Setting | Description |
|
4266
4215
|
* | ---------------- | --------------------------------------------------------------- |
|
4267
|
-
* | `true` (default) | Remove whitespace at the beginning and at the end of
|
4216
|
+
* | `true` (default) | Remove whitespace at the beginning and at the end of each cell |
|
4268
4217
|
* | `false` | Don't remove whitespace |
|
4269
4218
|
*
|
4270
|
-
* @memberof Options#
|
4219
|
+
* @memberof Options#
|
4271
4220
|
* @type {boolean}
|
4272
4221
|
* @default true
|
4273
4222
|
* @category Core
|
@@ -4284,7 +4233,6 @@ var _default = function _default() {
|
|
4284
4233
|
* ```
|
4285
4234
|
*/
|
4286
4235
|
trimWhitespace: true,
|
4287
|
-
|
4288
4236
|
/**
|
4289
4237
|
* @description
|
4290
4238
|
* The `type` option lets you set the [`renderer`](#renderer), [`editor`](#editor), and [`validator`](#validator)
|
@@ -4310,7 +4258,7 @@ var _default = function _default() {
|
|
4310
4258
|
* - [Cell renderer](@/guides/cell-functions/cell-renderer.md)
|
4311
4259
|
* - [Cell editor](@/guides/cell-functions/cell-editor.md)
|
4312
4260
|
* - [Cell validator](@/guides/cell-functions/cell-validator.md)
|
4313
|
-
* - [Configuration options: Cascading configuration](@/guides/getting-started/
|
4261
|
+
* - [Configuration options: Cascading configuration](@/guides/getting-started/configuration-options.md#cascading-configuration)
|
4314
4262
|
* - [`renderer`](#renderer)
|
4315
4263
|
* - [`editor`](#editor)
|
4316
4264
|
* - [`validator`](#validator)
|
@@ -4322,24 +4270,23 @@ var _default = function _default() {
|
|
4322
4270
|
*
|
4323
4271
|
* @example
|
4324
4272
|
* ```js
|
4325
|
-
* //
|
4273
|
+
* // set the `numeric` cell type for each cell of the entire grid
|
4326
4274
|
* type: `'numeric'`,
|
4327
4275
|
*
|
4328
4276
|
* // apply the `type` option to individual columns
|
4329
4277
|
* columns: [
|
4330
4278
|
* {
|
4331
|
-
* //
|
4279
|
+
* // set the `autocomplete` cell type for each cell of this column
|
4332
4280
|
* type: 'autocomplete'
|
4333
4281
|
* },
|
4334
4282
|
* {
|
4335
|
-
* //
|
4283
|
+
* // set the `myCustomCellType` cell type for each cell of this column
|
4336
4284
|
* type: 'myCustomCellType'
|
4337
4285
|
* }
|
4338
4286
|
* ]
|
4339
4287
|
* ```
|
4340
4288
|
*/
|
4341
4289
|
type: 'text',
|
4342
|
-
|
4343
4290
|
/**
|
4344
4291
|
* The `uncheckedTemplate` option lets you configure what value
|
4345
4292
|
* an unchecked [`checkbox`](@/guides/cell-types/checkbox-cell-type.md) cell has.
|
@@ -4365,13 +4312,13 @@ var _default = function _default() {
|
|
4365
4312
|
* ```js
|
4366
4313
|
* columns: [
|
4367
4314
|
* {
|
4368
|
-
* // set the `type` of
|
4315
|
+
* // set the `type` of each cell in this column to `checkbox`
|
4369
4316
|
* // when unchecked, the cell's value is `false`
|
4370
4317
|
* // when checked, the cell's value is `true`
|
4371
4318
|
* type: 'checkbox',
|
4372
4319
|
* },
|
4373
4320
|
* {
|
4374
|
-
* // set the `type` of
|
4321
|
+
* // set the `type` of each cell in this column to `checkbox`
|
4375
4322
|
* // when unchecked, the cell's value is `'No'`
|
4376
4323
|
* // when checked, the cell's value is `'Yes'`
|
4377
4324
|
* type: 'checkbox',
|
@@ -4382,7 +4329,6 @@ var _default = function _default() {
|
|
4382
4329
|
* ```
|
4383
4330
|
*/
|
4384
4331
|
uncheckedTemplate: void 0,
|
4385
|
-
|
4386
4332
|
/**
|
4387
4333
|
* The `undo` option configures the [`UndoRedo`](@/api/undoRedo.md) plugin.
|
4388
4334
|
*
|
@@ -4413,7 +4359,6 @@ var _default = function _default() {
|
|
4413
4359
|
* ```
|
4414
4360
|
*/
|
4415
4361
|
undo: void 0,
|
4416
|
-
|
4417
4362
|
/**
|
4418
4363
|
* @description
|
4419
4364
|
* The `validator` option sets a [cell validator](@/guides/cell-functions/cell-validator.md) for a cell.
|
@@ -4444,7 +4389,7 @@ var _default = function _default() {
|
|
4444
4389
|
* Read more:
|
4445
4390
|
* - [Cell validator](@/guides/cell-functions/cell-validator.md)
|
4446
4391
|
* - [Cell type](@/guides/cell-types/cell-type.md)
|
4447
|
-
* - [Configuration options: Cascading configuration](@/guides/getting-started/
|
4392
|
+
* - [Configuration options: Cascading configuration](@/guides/getting-started/configuration-options.md#cascading-configuration)
|
4448
4393
|
* - [`type`](#type)
|
4449
4394
|
*
|
4450
4395
|
* @memberof Options#
|
@@ -4473,7 +4418,6 @@ var _default = function _default() {
|
|
4473
4418
|
* ```
|
4474
4419
|
*/
|
4475
4420
|
validator: void 0,
|
4476
|
-
|
4477
4421
|
/**
|
4478
4422
|
* @description
|
4479
4423
|
* The `viewportColumnRenderingOffset` option configures the number of columns
|
@@ -4501,7 +4445,6 @@ var _default = function _default() {
|
|
4501
4445
|
* ```
|
4502
4446
|
*/
|
4503
4447
|
viewportColumnRenderingOffset: 'auto',
|
4504
|
-
|
4505
4448
|
/**
|
4506
4449
|
* @description
|
4507
4450
|
* The `viewportRowRenderingOffset` option configures the number of rows
|
@@ -4530,7 +4473,6 @@ var _default = function _default() {
|
|
4530
4473
|
* ```
|
4531
4474
|
*/
|
4532
4475
|
viewportRowRenderingOffset: 'auto',
|
4533
|
-
|
4534
4476
|
/**
|
4535
4477
|
* The `visibleRows` option sets the height of the [`autocomplete`](@/guides/cell-types/autocomplete-cell-type.md)
|
4536
4478
|
* and [`dropdown`](@/guides/cell-types/dropdown-cell-type.md) lists.
|
@@ -4552,20 +4494,19 @@ var _default = function _default() {
|
|
4552
4494
|
* {
|
4553
4495
|
* type: 'autocomplete',
|
4554
4496
|
* // set the `autocomplete` list's height to 15 options
|
4555
|
-
* // for
|
4497
|
+
* // for each cell of this column
|
4556
4498
|
* visibleRows: 15,
|
4557
4499
|
* },
|
4558
4500
|
* {
|
4559
4501
|
* type: 'dropdown',
|
4560
4502
|
* // set the `dropdown` list's height to 5 options
|
4561
|
-
* // for
|
4503
|
+
* // for each cell of this column
|
4562
4504
|
* visibleRows: 5,
|
4563
4505
|
* }
|
4564
4506
|
* ],
|
4565
4507
|
* ```
|
4566
4508
|
*/
|
4567
4509
|
visibleRows: 10,
|
4568
|
-
|
4569
4510
|
/**
|
4570
4511
|
* The `width` option configures the width of your grid.
|
4571
4512
|
*
|
@@ -4600,7 +4541,6 @@ var _default = function _default() {
|
|
4600
4541
|
* ```
|
4601
4542
|
*/
|
4602
4543
|
width: void 0,
|
4603
|
-
|
4604
4544
|
/**
|
4605
4545
|
* The `wordWrap` option configures whether content that exceeds a column's width is wrapped or not.
|
4606
4546
|
*
|
@@ -4639,9 +4579,8 @@ var _default = function _default() {
|
|
4639
4579
|
* ```
|
4640
4580
|
*/
|
4641
4581
|
wordWrap: true
|
4642
|
-
/* eslint-enable jsdoc/require-description-complete-sentence */
|
4643
4582
|
|
4583
|
+
/* eslint-enable jsdoc/require-description-complete-sentence */
|
4644
4584
|
};
|
4645
4585
|
};
|
4646
|
-
|
4647
4586
|
exports.default = _default;
|