[英]Calendar control for ionic?
I have managed to find several ionic calendar modules but cannot find any calendar control modules where a user can select from available dates. 我设法找到了几个离子日历模块,但是找不到用户可以从可用日期中选择的任何日历控制模块。 Is there anything out there?
那里有东西吗?
http://www.clearlyinnovative.com/ionic-framework-custom-formly-template-using-datepicker-plugin http://www.clearlyinnovative.com/ionic-framework-custom-formly-template-using-datepicker-plugin
I have used the $cordovaDatePicker
plugin successfully here and integrated it with formly in this blog post with a full working project. 我在这里成功地使用了
$cordovaDatePicker
插件,并将其与完整的工作项目正式整合到了本博文中。
here is the plugin - http://ngcordova.com/docs/plugins/datePicker/ 这是插件-http: //ngcordova.com/docs/plugins/datePicker/
module.controller('MyCtrl', function($scope, $cordovaDatePicker) {
var options = {
date: new Date(),
mode: 'date', // or 'time'
minDate: new Date() - 10000,
allowOldDates: true,
allowFutureDates: false,
doneButtonLabel: 'DONE',
doneButtonColor: '#F2F3F4',
cancelButtonLabel: 'CANCEL',
cancelButtonColor: '#000000'
};
document.addEventListener("deviceready", function () {
$cordovaDatePicker.show(options).then(function(date){
alert(date);
});
}, false);
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.