dmuy / mdtimepicker Goto Github PK
View Code? Open in Web Editor NEWMaterial design inspired time picker plugin for input elements.
Home Page: https://dmuy.github.io/MDTimePicker/
License: MIT License
Material design inspired time picker plugin for input elements.
Home Page: https://dmuy.github.io/MDTimePicker/
License: MIT License
I've run into an odd behavior with the AM/PM response from the timepicker. Here's how to reproduce it:
The issue seems to be specific to a time that starts as a PM time and is changed specifically to a "12" hour (changing from 2:00PM to 1:00PM returns 1:00PM like it should).
I have the timepicker configured with the following settings:
theme: 'blue',
format: 'h:mmtt',
hourPadding: false,
readOnly: true
I briefly tried using a format of 'hh:mmtt' to test 24-hour mode, and in those cases I got a 00:00 time back instead of a 12:00 time (consistent with the issue outlined above).
Any suggestions? I took a look at the javascript file, but unfortunately my JavaScript skills aren't up to the task yet.
I'm testing with Firefox 60.0.1 64-bit on Linux (Ubuntu Studio).
Thanks!
Hey,
under the Nuxt 3 section there is following line as an example:
nextApp.vueApp.use(vueTimePicker, { theme: 'dark', is24hour: true })
However, it just be "nuxtApp", not "nextApp", little annoying when copy pasting.
Thanks for this project BTW!
What options I need to pass to show minutes only selector?
I want user to choose minutes form 0 to 59.
Also when we edit the form, we have timepicker's value that we got while creating a form, how to show the preselected time in picker?
I would like to disable select option on the past hour from now and looks like there is no option set for it.
Hey there 👋,
So I was trying out the time picker which was amazing btw. Anyway, I just had a little problem with it, the AMPM button cannot be clicked to toggle the period. I have solved this problem by changing the source code locally. It was a simple change, but I just wanted to maybe put this feature live so people do not have to implement it themselves.
Sincerely,
Catalactics (Joshua Pelealu)
I want to set step for example step: 15 minutes that will look like so in minutes 0, 15, 30, 45, 00 but i can't see any option available for it.
<script type="text/javascript" src="assets/vendor/mdtimepicker/mdtimepicker.js"></script>
<script src="assets/js/script.js"></script>
<script>
$('.timepicker').mdtimepicker(); // Initialize time picker
</script>
"Uncaught TypeError: $(...).mdtimepicker is not a function"
I'm trying to use it that way and get this error, how can I solve it?
Please help me to get this feature as much as faster you can update. Thanks!! Appreciation.
I noticed this option in a sample on this site (https://www.jqueryscript.net/time-clock/Material-Time-Picker-Plugin-jQuery-MDTimePicker.html):
readOnly: false
It isn't listed in the options though and doesn't do anything when set.
Are there plans to support it?! I'd like to be able to enter time by typing on the keyboard in addition to the GUI.
p.s. also, any plans to support an inline: true
option too to embed the MDTimePicker directly in a body div instead of an input field?
The time pickers's time is not updated when you write your own time in the input field. I presumed that when I write say 5:00 PM in the input field then the clock arms are pointed to 5:00, PM button is active state and the time displayed is also updated to correspond to what was written. Just a suggestion though.
In the older jQuery version was a way to set defaults like so:
$.extend($.fn.mdtimepicker.defaults, { timeFormat: 'hh:mm:ss.000', format: 'hh:mm', theme: 'custom', readOnly: true, hourPadding: false, strCancel: 'stornieren', strOk: 'Ok', is12Hour: false });
This should be implemented again in a similar way..
Suggenstion:
It would be great if a custom theme could be passed as an option.
Now i overrule the default theme but if i can pass the theme name as an option i do not have to overrule the default theme.
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.