最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How To Get Currently Shown Calendar MonthYear in Ionic 8 (angular) using ion-datetime - Stack Overflow

programmeradmin0浏览0评论

Using the <ion-datetime> component, when you use the forward/back arrows to traverse between months of a calendar, it does not trigger an ionChange() event. Instead it triggers an ionFocus() event and this event does not pass any information about what calendar/month the user is on now. If I select a date within the calendar then it will pass that along to the ionChange() handler within the $event.detail property.

Here is what I'm referring to:

I've tried everything under the sun but all to no avail. I just want to display a list of events for each month, beneath the calendar when the user traverses using the left/right arrows so I need to know what month/year they are on! Note that the date picker on the left does trigger an ionChange() event.

发布评论

评论列表(0)

  1. 暂无评论