Jexcel Spreadsheets - DateTimePicker

Calendar, datepicker and datetimepicker column types on jExcel.

by Spreadsheet Online

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://bossanova.uk/components/bossanova-ui/js/jquery.jexcel.js"></script>
<script src="https://bossanova.uk/components/bossanova-ui/js/jquery.jcalendar.js"></script>
<link rel="stylesheet" href="https://bossanova.uk/components/bossanova-ui/css/jquery.jexcel.css">
<link rel="stylesheet" href="https://bossanova.uk/components/bossanova-ui/css/jquery.jcalendar.css">
<div id="my"></div>

CSS

body
{
  font:14px Helvetica;
}

JavaScript

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:'https://bossanova.uk/jexcel/countries' },
        { type: 'text' },
        { type: 'dropdown', source:[ {'id':'1', 'name':'Fruits'}, {'id':'2', 'name':'Legumes'}, {'id':'3', 'name':'General Food'} ] },
        { type: 'checkbox' },
        { type: 'calendar' },
    ]
});