Timepicker Init-Options

This commit is contained in:
Christian Seyfferth 2019-01-16 11:19:30 +01:00
parent f64ac02ec3
commit e9c129e2ee

15
app.js
View File

@ -23,15 +23,18 @@ if (!FileReader.prototype.readAsBinaryString) {
reader.readAsArrayBuffer(file); reader.readAsArrayBuffer(file);
} }
} }
var options = {
timepicker: {
twelveHour: false,
}
};
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
M.AutoInit(); M.AutoInit();
var elems = document.querySelectorAll('.timepicker');
var timepickers = M.Timepicker.init(elems, options.timepicker);
}); });
/* $(document).ready(function () {
$('.modal').modal();
$('.tabs').tabs();
$('.fixed-action-btn').floatingActionButton();
}); */
//localStorage persistence //localStorage persistence
var SHIFT_STORAGE_KEY = "dienstplan_chrosey"; var SHIFT_STORAGE_KEY = "dienstplan_chrosey";