I use calendar.create
function for 2 pages, when pick up a date in page 1 --> get back an choose page 2, the value of the date still there.
Can I refresh data of date each time I switch page?
I have an idea, handle it in pageBeforeIn
, make calendar = new calendar
, could it work?
It could work in pageBeforeIn, or you can just unset calendar value instead of creating new one each time
calendar.setValue([])
Could you give me some example of using calendar.setValue([])
, I can’t find it on your docs nor google
Value must be an empty array like in example I wrote above
1 Like