From c4f1f0211c7f0c13cb87424d2953120843ff5ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=8B=9C=EC=98=A8=ED=8C=8C=ED=8C=8C?= Date: Wed, 9 Mar 2022 14:14:43 +0900 Subject: [PATCH] =?UTF-8?q?grid=20=EC=98=B5=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/index.jsp | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp index 1f2bc83..354d045 100644 --- a/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/src/main/webapp/WEB-INF/jsp/index.jsp @@ -27,21 +27,6 @@ window.onload = function(){ document.querySelector('#findBtn').addEventListener('click', findData); stateDragAndDrop.callback = excelExport; //File Drag&Drop callback 이벤트 초기화 } -let readExcel = ()=>{ - let input = event.target; - let reader = new FileReader(); - reader.onload = function () { - let data = reader.result; - let workBook = XLSX.read(data, { type: 'binary' }); - workBook.SheetNames.forEach(function (sheetName) { - let rows = XLSX.utils.sheet_to_json(workBook.Sheets[sheetName]); - }) - }; - reader.readAsBinaryString(input.files[0]); - -} - - let excelExport = (event)=>{ @@ -361,6 +346,10 @@ const instance = new Grid({ // }, rowHeaders: ['rowNum'], bodyHeight: 450, + draggable: true, + columnOptions: { + resizable: true + }, columns: [ { header: '성명',