Comments (6)
$('input[type="time"]').clockpicker({ twelvehour: true })
from clockpicker.
Search for "ClockPicker.DEFAULTS" in the bootstrap-clockpicker.js file and replace "twelvehour: false" to true. You can also change the "donetext" as "DONE" as shown below.
ClockPicker.DEFAULTS = {
'default': '', // default time, 'now' or '13:14' e.g.
fromnow: 0, // set default time to * milliseconds from now (using with default = 'now')
placement: 'bottom', // clock popover placement
align: 'left', // popover arrow align
donetext: 'DONE', // done button text
autoclose: false, // auto close when minute is selected
twelvehour: true, // change to 12 hour AM/PM clock from 24 hour
vibrate: true // vibrate the device when dragging clock hand
};
from clockpicker.
It works as far as selecting the time but when you click edit it looses minutes and am/pm. Do you guys experience the same thing?
from clockpicker.
this.minutes brings in a string causing the following line of code to set this.minute to zero
this.minutes = + value[1] || 0;
check isNaN (value[1]) and if true split value[1] and return the first value
from clockpicker.
you can set 12 hours format using
$('input[type="time"]').clockpicker({ twelvehour: true });
from clockpicker.
Is it currently possible to use a End_Time LESS Start_Time
Please see below screenshot for easily understood
from clockpicker.
Related Issues (20)
- How do I set start hour, start minute, end hour, end hour? HOT 1
- Bootstrap 4 support HOT 2
- Loading Clockpicker in jQuery Modal HOT 3
- [Nooby mistake] auto-close doesn't work
- Can a ClockPicker work when it's dynamically loaded? HOT 3
- Active project and material design look HOT 2
- Use of this library with Webpack/ES6 import
- [FIXED] e.originalEvent.touches is empty in chrome HOT 1
- Need a space between HH:SS AM HOT 2
- How to use Jquery clockpicker with React? HOT 1
- Clockpicker still showing in disabled
- the feedback events have no parameters HOT 3
- How to change the size of clockpicker? HOT 4
- Plugin scrolling instead of changing time
- Is it possible to hide the leading zero in single digit times in AM/PM?
- restrict minutes to one choice
- How to get currently selected hour in afterHourSelect event?
- ReferenceError: primordials is not defined HOT 1
- Is this still maintained? HOT 1
- I couldn't localize the AM and PM to some other UTF-8 language. Any help? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clockpicker.