souly1 / ion-time-picker Goto Github PK
View Code? Open in Web Editor NEWA well designed time picker/spinner for Angular & Ionic
A well designed time picker/spinner for Angular & Ionic
onSet is not working on my ionic project, can you please give me example how to use this directive?
I'm trying to add the clear button with the attribute on the HTML but it doesn't show up.
<input type="text" placeholder="" ng-model="StartTime" ion-time-picker hasClear="true">
I've tried with hasClear="true"
and hasClear
.
Ionic Framework Version: 1.1.1
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
Hello,
Can you please tell me how to use this picker for date also? if that is not available in this library then suggest me best. I'm ready to buy that also.
HI I purchased your time picker and it works well except for one aspect. I cannot get the time to only use 24H clock. here is the code I am using ...
<input type="text" class: "rs-right" placeholder="" ng-model="scheduleData.time" ion-time-picker step="15" isWithDaytime = false \>
What is the proper syntax to get the timepicker to force 24H time only? Thanks.
Just tried to implement the ion-time-picker and stumbled upon this error:
Error unknown provider
The time picker works but the error is thrown nonetheless.
Debugging of this problem showed that when the module 'ion-pickers' is defined it makes a try/catch(err) statement.
In my case i noticed that no error was catched hence the following was computed:
pickersModule = angular.module("ion-pickers")
However this is the cause of the error stated above. When trying to run the directive ionTimePicker
the $injector
throws an error.
I fixed it by adding squared brackets to the module declaration. Running this results in a computation with no errors thrown by Angular. But the time-picker does not react to touch-events indicating that it needs the ion-os-scroller and the hmTouchEvent. Adding these to the module declaration, fixed the problem. Here is the code changed (in a prettified version):
var pickersModule = null; try { pickersModule = angular.module("ion-pickers", ["hmTouchEvents", "ion-os-scroller"]) } catch (err) { pickersModule = angular.module("ion-pickers", ["hmTouchEvents", "ion-os-scroller"]) }
Not sure of the reason for this behavior, but I though that I should let you know ๐ ๐
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.