UNPKG

handsontable

Version:

Handsontable is a JavaScript Data Grid available for React, Angular and Vue.

27 lines (26 loc) 919 B
"use strict"; exports.__esModule = true; exports.createHighlight = createHighlight; var _src = require("../../../3rdparty/walkontable/src"); var _visualSelection = _interopRequireDefault(require("../visualSelection")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } /** * Creates the new instance of Selection, responsible for highlighting column or row headers when * any cell is selected. * This type of selection can occur multiple times. * * @param {object} highlightParams A configuration object to create a highlight. * @param {string} highlightParams.headerClassName Highlighted headers' class name. * @returns {Selection} */ function createHighlight(_ref) { let { headerClassName, ...restOptions } = _ref; return new _visualSelection.default({ className: headerClassName, ...restOptions, selectionType: _src.HIGHLIGHT_HEADER_TYPE }); }