Index: arms/css/jspreadsheet/custom_sheet.css =================================================================== diff -u -r05e2b3bd4f28ea270307c88f0e513159d6bc6976 -r3096f5f361574ce27c5edee9dec47284cbc0db56 --- arms/css/jspreadsheet/custom_sheet.css (.../custom_sheet.css) (revision 05e2b3bd4f28ea270307c88f0e513159d6bc6976) +++ arms/css/jspreadsheet/custom_sheet.css (.../custom_sheet.css) (revision 3096f5f361574ce27c5edee9dec47284cbc0db56) @@ -1,25 +1,5 @@ :root { -/* --jexcel_header_color: #FFF; - --jexcel_header_color_highlighted: #A4C6FF; - --jexcel_header_background: #515151; - --jexcel_header_background_highlighted: #777; - --jexcel_content_color: #FFF; - --jexcel_content_color_highlighted: #A4C6FF; - --jexcel_content_background: #3e3e3e; - --jexcel_content_background_highlighted: #777; - - --jexcel_menu_background: #7e7e7e; - --jexcel_menu_background_highlighted: #ebebeb; - --jexcel_menu_color: #ddd; - --jexcel_menu_color_highlighted: #222; - - --jexcel_border_color: #5f5f5f; - --jexcel_border_color_highlighted: #999; - - --active_color: #eee; - --active-color: var(--active_color);*/ - --jexcel_header_color: #000; --jexcel_header_color_highlighted: #000; --jexcel_header_background: #f3f3f3; @@ -39,7 +19,7 @@ } .jexcel tbody tr:nth-child(even) td{ - background-color: #E6E6E6 !important; + background-color: #E6E6E6; } .jexcel { @@ -59,7 +39,7 @@ .jexcel_content{ padding-right: 0 !important; - font-size: 12px !important; + font-size: 12px; line-height: 15px !important; /* 행간 설정 */ } Index: arms/js/common/jspreadsheet/spreadsheet.js =================================================================== diff -u -r208ec2195511a132824387e9e79d6a6ea4adb91f -r3096f5f361574ce27c5edee9dec47284cbc0db56 --- arms/js/common/jspreadsheet/spreadsheet.js (.../spreadsheet.js) (revision 208ec2195511a132824387e9e79d6a6ea4adb91f) +++ arms/js/common/jspreadsheet/spreadsheet.js (.../spreadsheet.js) (revision 3096f5f361574ce27c5edee9dec47284cbc0db56) @@ -10,22 +10,13 @@ $.getStylesheet("./css/jspreadsheet/custom_sheet.css"), $.getStylesheet("./css/jspreadsheet/custom_icon.css") ).done(function() { - var Spreadsheet = function (element, options) { - $.fn.jspreadsheet.call(element, options); - }; - Spreadsheet.prototype = Object.create(window.jspreadsheet); - Spreadsheet.prototype.constructor = Spreadsheet; - //$("#hsh").show(); 에서 $.fn.show(); 와 동일하다. $.fn.spreadsheet = function (option) { var $this = $(this); - var spreadsheet = $this.data("arms.spreadsheet"); // 검토 - var getSpreadsheet = function() { - return spreadsheet; - }; + var spreadsheet = $this.data("arms.spreadsheet"); if (typeof option === "string") { - if (!spreadsheet) return false; + if (!spreadsheet) { return false; } return spreadsheet[option](); } if (!spreadsheet || (typeof option === "object" && option !== null)) { @@ -36,23 +27,21 @@ type: "i", k: "undo", onclick: function () { - console.log("undo"); - getSpreadsheet().undo(); + spreadsheet.undo(); } }, { type: "i", k: "redo", onclick: function () { - console.log("redo"); - getSpreadsheet().redo(); + spreadsheet.redo(); } }, { type: "i", k: "save", onclick: function () { - getSpreadsheet().download(); + spreadsheet.download(); } }, { @@ -113,7 +102,7 @@ option ); - $this.data("arms.spreadsheet", (spreadsheet = new Spreadsheet(this, options))); + $this.data("arms.spreadsheet", (spreadsheet = $this.jspreadsheet(options))); } return spreadsheet; @@ -140,6 +129,9 @@ tableOverflow: true, textOverflow: true, tableWidth: "100%", + onchange: function (instance, cell, x, y, value) { + console.log(cell); + }, onload: function(element) { var $jexcel = $(element); @@ -158,6 +150,5 @@ } }; - $.fn.spreadsheet.Constructor = Spreadsheet; }); })(jQuery); \ No newline at end of file