text: document.addEventListener("DOMContentLoaded",function(){var e=[["","Kia","Nissan","Toyota","Honda"],["2014",-5,"",12,13],["2015","",-11,14,13],["2016","",15,-12,"readOnly"]];function r(e,t,a,n,r,o,d){Handsontable.renderers.TextRenderer.apply(this,arguments),t.style.fontWeight="bold",t.style.color="green",t.style.background="#CEC"}Handsontable.renderers.registerRenderer("negativeValueRenderer",function(e,t,a,n,r,o,d){Handsontable.renderers.TextRenderer.apply(this,arguments),parseInt(o,10)<0&&(t.className="make-me-red"),t.style.background=o&&""!==o?("Nissan"===o&&(t.style.fontStyle="italic"),""):"#EEE"}),t=document.getElementById("formatting"),new Handsontable(t,{data:e,afterSelection:function(e,t,a,n){this.getCellMeta(a,n).readOnly?this.updateSettings({fillHandle:!1}):this.updateSettings({fillHandle:!0})},cells:function(e,t,a){var n={};return 0!==e&&"readOnly"!==this.instance.getData()[e][t]||(n.readOnly=!0),n.renderer=0===e?r:"negativeValueRenderer",n}});var t=document.getElementById("borders");Handsontable(t,{data:Handsontable.helper.createSpreadsheetData(70,20),rowHeaders:!0,fixedColumnsLeft:2,fixedRowsTop:2,colHeaders:!0,customBorders:[{range:{from:{row:1,col:1},to:{row:3,col:4}},top:{width:2,color:"#5292F7"},left:{width:2,color:"orange"},bottom:{width:2,color:"red"},right:{width:2,color:"magenta"}},{row:2,col:2,left:{width:2,color:"red"},right:{width:1,color:"green"}}]});e=[["","Kia","Nissan","Toyota","Honda"],["2013",10,11,12,13],["2014",20,11,14,13],["2015",30,15,12,13]],t=document.getElementById("highlighting");Handsontable(t,{data:e,minRows:5,minCols:6,currentRowClassName:"currentRow",currentColClassName:"currentCol",rowHeaders:!0,colHeaders:!0}).selectCell(2,2);var a=document.getElementById("mobilesTablets");new Handsontable(a,{data:Handsontable.helper.createSpreadsheetData(100,100),rowHeaders:!0,colHeaders:!0,fixedRowsTop:2,fixedColumnsLeft:2})});