handsontable
Version:
Handsontable is a JavaScript Data Grid available for React, Angular and Vue.
27 lines (26 loc) • 887 B
JavaScript
;
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 cells in a rows and
* row headers.
* This type of selection can occur multiple times.
*
* @param {object} highlightParams A configuration object to create a highlight.
* @param {string} highlightParams.rowClassName Highlighted row' class name.
* @returns {Selection}
*/
function createHighlight(_ref) {
let {
rowClassName,
...restOptions
} = _ref;
return new _visualSelection.default({
className: rowClassName,
...restOptions,
selectionType: _src.HIGHLIGHT_ROW_TYPE
});
}