简体   繁体   中英

YUI 2.0 calendar - how to get current calendar page

I'm looking for a way to get the current pagedate. I know how to get the original config or even how to subscribe to changePageEvent and get it while scrolling, but neither covers a case when someone opens the calendar scrolls through few months and then closes and re-opens, I need the pagedate for that page. There has to be a property that records that, but can't find in the API.

Here is an example of a popup calendar that remains on the last calendar page viewed, even if a date isn't selected. Browse to a month and close the calendar using the "x" in the corner. When you click the button to display the calendar again you'll find it's on the same page you last navigated to:

Calendar Control: Popup Calendar - Basic

I don't see any code in the example source code that sets the date, so in the absence of your source code I'll have to guess that you're instantiating a new calendar each time you show it.

To get the month/year displayed use the pagedate property .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM