xtianus79 / multiple-date-picker-angular

Multiple Date Picker for Angular: This includes Angular 2+ / 4+ / 5+ to utilize a lightweight and clean calendar allowing user to select multiple dates, single, use custom callback on (de)selection. You can also specify off days or already selected days. You can also select a range of dates with start and end inputs... This will also calculate all the days inbetween.
http://xtianus79.github.io/MultipleDatePicker
MIT License
14 stars 19 forks source link

Properties not working #1

Closed jantunes91 closed 7 years ago

jantunes91 commented 7 years ago

Hi, I just stumbled upon your angular 2 version of multiple date picker. I'm trying to use it as described in the original docs, but I'm having some issues. Specifically, If I do something like <multiple-date-picker #datePicker [(ngModel)]="dateArray" week-days-off="[0, 3]" disable-navigation="true"></multiple-date-picker> the week-days-off and disable-navigation are not propagated onto the view. Is there something different in this version or am I doing something wrong? thanks in advance!

xtianus79 commented 7 years ago

Hi @jantunes91 i really need to push my updates and update the docs. I will do so today... if I can't robustly update the docs I will post a working example here in this thread

gangfang commented 7 years ago

@xtianus79 could you please update the docs? Not really sure how to use it..

That will be much appreciated thanks!

gangfang commented 7 years ago

Hello @xtianus79 ?

xtianus79 commented 7 years ago

Yes, I am really sorry... I will try to get something up there today. It here is a sample config to get your started.

@gangfang

<multiple-date-picker 
      [showDaysOfSurroundingMonths]="false" 
      [matIcons]="true" 
      [disallowBackPastMonths]="true" 
      [sundayFirstDay]="true" 
      disableDaysBefore="true" 
      [monthChanged]="logMonthChanged"
      [highlightDays]="highlightDays"
      [dayClick]="oneDaySelectionOnly"
      [weekDaysOff]="[0, 3]"
      [(ngModel)]="initialCount">
</multiple-date-picker>
AishwaryT commented 7 years ago

@xtianus79 "week-days-off" and other properties still not working, if you can suggest what i can do to make it work, that would be great. Thanks

xtianus79 commented 7 years ago

Do you know all the properties that aren't working... I am going to update this today.... I will configure week-days-off and the other ones you mention.

xtianus79 commented 7 years ago

@AishwaryT I have fixed your issue... I have a new build coming today... with code clean up, bug fixes and new functionality!!!

AishwaryT commented 7 years ago

@xtianus79 , Thanks a lot, its working now.