jannicz / appointment-picker Goto Github PK
View Code? Open in Web Editor NEWAppointment Picker - a tiny JavaScript timepicker that helps you pick appointments
Home Page: https://jannicz.github.io/appointment-picker/
License: MIT License
Appointment Picker - a tiny JavaScript timepicker that helps you pick appointments
Home Page: https://jannicz.github.io/appointment-picker/
License: MIT License
appointment-picker/js/appointment-picker.js
Line 319 in 3289e99
maxTime sets the maximum hour that can be picked, default is 24
it mean that e.g 9 is set that 9:15 cannot be picked or ?
if yes, add please this check (hour === opt.maxTime && minute) for the intervals, in the moment u can pick 9:00 as last maxTime is correct, but not the 9:[intervals].
} else if(hour === opt.maxTime && minute > 0){
Do a-picker capable of leading zero for 24H format (05:30 instead of 5:30)?
IE10 and older Safari Browsers could be easily supported by adding
display: -ms-flexbox; /* IE 10 */
display: -webkit-flex; /* Safari 6.1+. iOS 7.1+, BB10 */
To enhance customizability, add an option to pass the pickers's html fragment in as an option, i.e.
template: {
inner: "<li>foo</li>",
outer: "<ul>{{inner}}</ul>"
}
As it seems timeslot are created programmatically via min/max, start/end and disabled dates -
But I have an array here which contains only the available start times of a timeslot.
(the length of a slot is defined.)
Would it be possible to pass this array to to th picker somehow?
Thank you in advance and best Regards, MT
Add classList polyfill to make the picker work in IE9 (and comparable) browsers.
Entering 5:00 PM (and PM in uppercase) parses to 5:00 instead of 17:00. Lowercase works fine.
A viable scenario is that an appointment could last 2h, why the limit for 60min?
The picker could mark bold the closest current time, so the user would see what time it is now...
Because of the used timeout a 'close' event is necessary, i.e. to hook into the functionality to enable custom validation on the input field.
Hi there,
I would like to display only the options and hide the input field - would this be possible?
Thank you and best regards, MT
If allowReset=true and the input is being cleared manually, the 'change.appo.picker' event is not being dispatched! A reset should also dispatch the event!
The picker should not close either if clicked in the same input field or after holding and releasing the mouse button. The picker should only close if clicked outside of both the input and the picker area.
u can add here click support for mouse
el.addEventListener('click', _this.openEventFn);
Though most projects use SCSS it would be helpful to have the option here.
is it possible to select two time slots to make up a time range?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.