From beb97c789ce6d15774aeebb15d336c185a47d817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Collard?= Date: Wed, 11 Sep 2019 10:34:45 +0400 Subject: [PATCH] add number type for input I add the possibility to have a input with the type number without the confirm option. --- js/dataTables.cellEdit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/dataTables.cellEdit.js b/js/dataTables.cellEdit.js index 7b0448b..7b34b70 100644 --- a/js/dataTables.cellEdit.js +++ b/js/dataTables.cellEdit.js @@ -220,6 +220,9 @@ function getInputHtml(currentColumnIndex, settings, oldValue) { case "number-confirm" : input.html = startWrapperHtml + " Confirm Cancel" + endWrapperHtml; break; + case "number" : + input.html = startWrapperHtml + "" + endWrapperHtml; + break; default: // text input input.html = startWrapperHtml + "" + endWrapperHtml; break;