Don't you hate to repeat yourself? For example, I hate working on anything related to user authentication or authorization that isn't directly rela...
For further actions, you may consider blocking this person and/or reporting abuse
No way to jump to another year/month.
how come? you should see forward and backward buttons, if not please provide more details.
Go to December 30. 1974 ... How many backs do you have to click?
Not every date entry is the near future or past.
It's not good UX for birthday picking, that's for sure. Main reason why I build it was for range picking (same as in AirBnb). Anyhow, if you want to open a calendar at specific year/month you can specify
year
andmonth
as documented here.I think, except for the size, Ms Ajax toolkit had the best date picked ux ever. Even if I hated the toolkit itself
Any reason why you used Svelte and not Stencil? Cool project by the way. I'm really pissed with the large ~300kb bundle of react-date. Will give it a try.
Is it possible to add presets? I'll add the question to the repo as well.
Yeah! I actually knew about Stencil at the time I started, but I liked Svelte more. Even now I see Stencil is marketing it has 6kb runtime, while whole nanocal weights less than that. So I guess no runtime still beats a minimal runtime for me :)
Wow this is very good! Also the usage is simple and well implemented! Nice work :)
it will be better if you provide demo to see how this date-picker look
you can see live examples on repo's readme: github.com/zigomir/nanocal#example... ;)
Hi am very new to this Date Range Picker and am done Date Range Picker in Type script showing single month but I need to show two months, Please help me in building the calendar showing two months
This is the code I had done to show calendar for one month but I need two months to show please help me .
public createCalender(month) {
const firstDay = moment(month).startOf('M');
const days = Array.apply(null, {length: month.daysInMonth()})
.map(Number.call, Number)
.map((n) => {
return moment(firstDay).add(n, 'd');
});
for (let n = 0; n < firstDay.weekday(); n++) {
days.unshift(null);
}
return days;
}