Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handsontable with datetimepicker

Is there a plugin to implement datetimepicker in handsontable? The closest I got was pickadate fork here but I have no clue how to implement this in Handsontable.

like image 992
VariSingh Avatar asked Oct 18 '22 22:10

VariSingh


1 Answers

You can achieve this by modifying the file handsontable.full.js. Take this file: http://handsontable.com/dist/handsontable.full.js

Find the section "Pikaday":

/*!
 * Pikaday
 *
 * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
 */

(function (root, factory)
{

.......

    return Pikaday;

}));

Replace it with this fork: https://github.com/owenmead/Pikaday/blob/master/pikaday.js

Then specify the date format like: dateFormat: "YYYY-MM-DD HH:mm".

like image 50
Stéphane Laurent Avatar answered Oct 21 '22 21:10

Stéphane Laurent