Hello!
Please help with the code
I want to choose time with picker
https://framework7.io/docs/picker.html
It is very convenient!
I did this:
var pickerDescribe = app.picker.create({
inputEl: '#demo-picker-describe',
rotateEffect: false,
routableModals: false,
toolbarCloseText: 'Готово',
formatValue: function (values, displayValues) {
return values[0] + ':' + values[1];
},
cols: [
// Hours
{
onChange: function (picker, country) {
},
values: (function () {
var arr = [];
for (i=0; i <= 23; i++) {
arr.push(i);
}
return arr;
})(),
},
// Divider
{
divider: true,
content: ':'
},
// Minutes
{
values: (function () {
var arr = [];
for (var i = 0; i <= 59; i += 10) {
arr.push(i < 10 ? '0' + i : i);
}
return arr;
})(),
}
],
on: {
change: function (picker, values, displayValues) {
var n_today = new Date();
},
}
});
But I really need to choose the maximum and minimum time.
Help write such a function