DOM Calendar
1) Display a list of dates
- You can display Mon to Sunday
{expr:[{id:'total',prop:"value"}], actions:[{id:'recalculate',method:"click"},{id:'quantity',value:"2"},{id:'recalculate',method:"click"},]}
Input
xxxxxxxxxx
let firstDate = new Date('2022-01-01');
for(let i=0;i<6*7;i++){
let d = document.createElement('div');
d.innerText = `i`;
document.body.append();
}
Output
let firstDate = new Date('2022-01-01'); for(let i=0;i<6*7;i++){ let d = document.createElement('div'); d.innerText = `i`; document.body.append(); }