kekeh / angular-mydatepicker

Angular datepicker and date range picker :date:
https://kekeh.github.io/angular-mydatepicker/
MIT License
1 stars 11 forks source link

In angular-mydatepicker inline mode is there any facility if i want to show only month and year, no date? #50

Open gmengi opened 4 years ago

kekeh commented 4 years ago

You have to select also a date. You cannot hide the date selection.

gmengi commented 4 years ago

ok, Is there anyway even if I can disable date selection not month and year?

kekeh commented 4 years ago

You can disable only the year and the month selection views not the date selection view. If you are searching a month/year picker this component is not right for that purpose.

gmengi commented 4 years ago

I already integrated this component, As this is a perfect fit for my requirement but only I need to month/year selection sometimes. Can you recommend me best one for month/year if you are aware of it?

gmengi commented 4 years ago

Hi keheh, As i had used inline angular-mydatepicker also kept inputFieldValidation is TRUE. but even i can't see any validation happen.

kekeh commented 4 years ago

Validation occurs on BLUR event from the input element: https://github.com/kekeh/angular-mydatepicker/blob/master/projects/angular-mydatepicker/src/lib/angular-mydatepicker.input.ts#L120

If the date is valid (match to the format of date given in options) it calls dateChanged callback.

This option has no effect on inline mode because there is not input element visible.