Examples
The Spreadsheet minimalist jQuery Plugin examples shows the usage with various column types such as text, dropdown, autocomplete, checkbox and date.
Source code
<html> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jexcel/2.1.0/js/jquery.jexcel.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jexcel/2.1.0/js/jquery.jdropdown.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jexcel/2.1.0/js/jquery.jcalendar.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jexcel/2.1.0/css/jquery.jexcel.min.css" type="text/css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jexcel/2.1.0/css/jquery.jdropdown.min.css" type="text/css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jexcel/2.1.0/css/jquery.jcalendar.min.css" type="text/css" /> <div id="my"></div> <script> data = [ [3, 'Classe A', 'Cheese', 1, '2017-01-12'], [1, 'Classe B', 'Apples', 1, '2017-01-12'], [2, 'Classe A', 'Carrots', 1, '2017-01-12'], [1, 'Classe C', 'Oranges', 0, '2017-01-12'], ]; $('#my').jexcel({ data:data, colHeaders: [ 'Country', 'Description', 'Type', 'Stock', 'Next purchase' ], colWidths: [ 300, 80, 100, 60, 120 ], columns: [ { type: 'autocomplete', url:'/jspreadsheet/countries' }, { type: 'text' }, { type: 'dropdown', source:[ {'id':'1', 'name':'Fruits'}, {'id':'2', 'name':'Legumes'}, {'id':'3', 'name':'General Food'} ] }, { type: 'checkbox' }, { type: 'calendar' }, ] }); </script> </html>
See more examples
Full examples on how to handle simple, advanced, autocomplete and conditional dropdowns.
Insert, remove and move columns and rows
Overflow table and scrolling
Create a custom table design. For example a bootstrap-like spreadsheet table.
Table styling
Manage a table cell comments
Manage the table meta information
Full examples how to load a autocomplete dropdown.
How to load the data from an external CSV file into a Jspreadsheet grid or table.
Handling currency types and masking numbers.
How to handle a calendar with date and datetime picker.
Sorting your Jspreadsheet spreadsheet
How to create custom column types based on a third party jquery plugin
Handling events on your spreadsheet
Understanding how to set a readonly column or multiple custom cells
How to create multiple table instances in the same page
How to change the text wrap behavior in a Jspreadsheet column
Creating a Jspreadsheet table with nested headers.
Add images on your spreasheet cells