Skip to content

Instantly share code, notes, and snippets.

@karlosmid
Created February 19, 2021 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlosmid/cfbef610f0fb990c0b4a2c671b7343fc to your computer and use it in GitHub Desktop.
Save karlosmid/cfbef610f0fb990c0b4a2c671b7343fc to your computer and use it in GitHub Desktop.
Forbid adding columns to jExcel
<html>
<script src="https://bossanova.uk/jspreadsheet/v3/jexcel.js"></script>
<link rel="stylesheet" href="https://bossanova.uk/jspreadsheet/v3/jexcel.css" type="text/css" />
<script src="https://jsuites.net/v3/jsuites.js"></script>
<link rel="stylesheet" href="https://jsuites.net/v3/jsuites.css" type="text/css" />
<div id='my-spreadsheet'></div>
<script>
data = [
['Mazda', 2001, 2000],
['Pegeout', 2010, 5000],
['Honda Fit', 2009, 3000],
['Honda CRV', 2010, 6000],
];
jexcel(document.getElementById('my-spreadsheet'), {
data:data,
columns:[
{ title:'Model', width:300 },
{ title:'Price', width:80 },
{ title:'Model', width:100 }
],
allowInsertColumn: false
});
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment