polaris-date-picker
implements the Polaris Date picker component.
Default date picker:
where handleMonthChange
receives both month
and year
arguments as Numbers:
/**
parent-component.js
*/
month: 1,
year: 2018,
selected: null,
actions: {
handleMonthChange(month, year) {
this.setProperties({
month,
year
});
}
}
Date picker with two months displayed at a time: