Here is the code, how to open calendar in expanded month display. Now clicking on image, opens datepicker in input format, need to click once more to open the month. Is it possible to open directly in month window.
$w.onReady(function () {
//TODO: write your page related code here…
$w(‘#datePicker1’).collapse();
});
export function vectorImage1_click(event) {
//Add your code for this event here:
$w(‘#datePicker1’).expand();
$w(‘#datePicker1’).show();
$w(‘#datePicker1’).focus();
}
export function datePicker1_click(event) {
//Add your code for this event here:
console.log(“click”);
}
export function datePicker1_change(event) {
//Add your code for this event here:
console.log(“change " + $w(‘#datePicker1’).value);
$w(”#datePicker1").collapse();
}