From a504c2846d4b2c374d76138854fce5a511e8b524 Mon Sep 17 00:00:00 2001 From: itbm <22393016+itbm@users.noreply.github.com> Date: Thu, 2 May 2019 08:43:05 +0100 Subject: [PATCH 1/2] Update text renderer for compatibility with 7.0.2 --- demo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo.js b/demo.js index 3cdd249..cd0dc77 100644 --- a/demo.js +++ b/demo.js @@ -60,7 +60,7 @@ function customDropdownRenderer(instance, td, row, col, prop, value, cellPropert var optionsList = cellProperties.chosenOptions.data; if(typeof optionsList === "undefined" || typeof optionsList.length === "undefined" || !optionsList.length) { - Handsontable.cellTypes.text.renderer(instance, td, row, col, prop, value, cellProperties); + Handsontable.renderers.TextRenderer.apply(this, arguments); return td; } @@ -75,6 +75,6 @@ function customDropdownRenderer(instance, td, row, col, prop, value, cellPropert } value = value.join(", "); - Handsontable.cellTypes.text.renderer(instance, td, row, col, prop, value, cellProperties); + Handsontable.renderers.TextRenderer.apply(this, arguments); return td; } From 38986fbeb953b69217166e72637c8f0e697cad04 Mon Sep 17 00:00:00 2001 From: itbm <22393016+itbm@users.noreply.github.com> Date: Thu, 2 May 2019 08:43:40 +0100 Subject: [PATCH 2/2] Update demo to 7.0.2 --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 614f7df..a741c7f 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ + href="https://cdnjs.cloudflare.com/ajax/libs/handsontable/7.0.2/handsontable.full.css"> @@ -15,7 +15,7 @@ - +