Skip to content

Instantly share code, notes, and snippets.

View ben-dalton's full-sized avatar

Ben Dalton ben-dalton

View GitHub Profile
@ben-dalton
ben-dalton / customEditors.js
Created July 19, 2017 18:48
Handsontable Custom Editor
import * as Handsontable from 'handsontable';
export const SelectValueEditor = Handsontable.editors.BaseEditor.prototype.extend();
SelectValueEditor.prototype.init = function () {
this.select = document.createElement('SELECT');
Handsontable.dom.addClass(this.select, 'htSelectEditor');
this.select.style.display = 'none';
this.instance.rootElement.appendChild(this.select);
};