kevinoleary19 / Angular-2-Datepicker

A minimalist datepicker inspired by Google's material design
70 stars 71 forks source link

weekStart option has no effects #89

Open mariogl opened 7 years ago

mariogl commented 7 years ago

I'm setting weekStart option to 1, but week always start on Sunday.

In the component, I can see that class Calendar is instantiated without passing the firstWeekDay parameter, so the object is always created with its firstWeekDay property setted to 0.

If this omission is intentional, then the option weekStart shouldn't be documented in README.md, as is now.

joangilabert94 commented 7 years ago

The file src/datepicker.component.ts in github it is different than the npm. In npm weekStart and month not work.

LucaPierfederici commented 7 years ago

Yes I noticed the same thing. It would be great if weekStart, month, and dayNames will be supported soon in npm version @koleary94