SaturnTeam / saturn-datepicker

Angular Material Datepicker with range selection
MIT License
278 stars 110 forks source link

Adds ability to listen to begin date selection #135

Closed abdel-ships-it closed 4 years ago

abdel-ships-it commented 4 years ago

This will address both the needs of #134 and #121

I have also tested this locally and it seems to work fine :D

varun1233 commented 4 years ago

Saturn Team Can you guys please merge the pull request so that we can use it.

abdel-ships-it commented 4 years ago

@SaturnTeam Would appreciate it a lot if you review my PR :D

liamclarkedev commented 4 years ago

+1 for this functionality

MuriloFranceschetto commented 4 years ago

I need this to, please accept the request :) +1 to the list.

SrinivasaKK commented 4 years ago

<sat-datepicker

datePicker

        [closeAfterSelection]="false"
        [rangeMode]="true"
        panelClass="datepickerPanel"
        (beginDateSelected)="test()"
      >
      </sat-datepicker>

I am trying to use this way. But Not able to detect the begin date selection event. is this the right way or Am I doing it wrong?

MuriloFranceschetto commented 4 years ago

I dont now man, i give up to try to use this. But now the matDatePicker, of Angular Material Add a new Feature that is possible to pick the start date, if i am not wrong.

I am Brasilian, so sorry by the bad english.

Em sáb., 4 de jul. de 2020 às 23:43, Srinivasa K K notifications@github.com escreveu:

<sat-datepicker

datePicker

[closeAfterSelection]="false" [rangeMode]="true" panelClass="datepickerPanel" (beginDateSelected)="test()"

I am trying to use this way. But Not able to detect the begin date selection event. is this the right way or Am I doing it wrong?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SaturnTeam/saturn-datepicker/pull/135#issuecomment-653834306, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBLKSJEXBZHRJMNH3NR4F3RZ7SDLANCNFSM4MEGLKLQ .

SrinivasaKK commented 4 years ago

I dont now man, i give up to try to use this. But now the matDatePicker, of Angular Material Add a new Feature that is possible to pick the start date, if i am not wrong. I am Brasilian, so sorry by the bad english. Em sáb., 4 de jul. de 2020 às 23:43, Srinivasa K K notifications@github.com escreveu: <sat-datepicker #datePicker [closeAfterSelection]="false" [rangeMode]="true" panelClass="datepickerPanel" (beginDateSelected)="test()" > I am trying to use this way. But Not able to detect the begin date selection event. is this the right way or Am I doing it wrong? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#135 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBLKSJEXBZHRJMNH3NR4F3RZ7SDLANCNFSM4MEGLKLQ .

Yes, true. Angular material 10 has the date range picker.

However, I found a workaround for the issue I mentioned above.

ngAfterViewInit() { this.datePicker.setBeginDateSelected = (beginDate) => { console.log(beginDate) }; }

This seems to work.

Refer this link: https://stackoverflow.com/questions/61081950/add-date-range-validation-to-saturn-datepicker

MuriloFranceschetto commented 4 years ago

Cool!!! I'm gona try this in work some day. I appreciate the tip. Good luck with what you're doing.

Em dom, 5 de jul de 2020 21:31, Srinivasa K K notifications@github.com escreveu:

I dont now man, i give up to try to use this. But now the matDatePicker, of Angular Material Add a new Feature that is possible to pick the start date, if i am not wrong. I am Brasilian, so sorry by the bad english. Em sáb., 4 de jul. de 2020 às 23:43, Srinivasa K K notifications@github.com escreveu: … <#m4318534645953283610> <sat-datepicker #datePicker [closeAfterSelection]="false" [rangeMode]="true" panelClass="datepickerPanel" (beginDateSelected)="test()" > I am trying to use this way. But Not able to detect the begin date selection event. is this the right way or Am I doing it wrong? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#135 (comment) https://github.com/SaturnTeam/saturn-datepicker/pull/135#issuecomment-653834306>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBLKSJEXBZHRJMNH3NR4F3RZ7SDLANCNFSM4MEGLKLQ .

Yes, true. Angular material 10 has the date range picker.

However, I found a workaround for the issue I mentioned above.

ngAfterViewInit() { this.datePicker.setBeginDateSelected = (beginDate) => { console.log(beginDate) }; }

This seems to work.

Refer this link:

https://stackoverflow.com/questions/61081950/add-date-range-validation-to-saturn-datepicker

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SaturnTeam/saturn-datepicker/pull/135#issuecomment-653960763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBLKSOTCCD6HUDCDHTSHXLR2ELM7ANCNFSM4MEGLKLQ .