danielmoncada / date-time-picker

Angular Date Time Picker (Responsive Design)
https://daniel-projects.firebaseapp.com/owlng/date-time-picker
MIT License
141 stars 61 forks source link

invalid time validation not fired #74

Open arslbbt opened 4 years ago

arslbbt commented 4 years ago

When we add a wrong time and click the set button, I was gotten a current time but my requirement is button disable when we input the wrong time like this npm https://h2qutc.github.io/angular-material-components/datetimepicker

danielmoncada commented 4 years ago

@arslbbt that link does not work.

Also, if you want to disable the button when the time is incorrect, just use an ngClass and bind to a boolean value that represents time validity. Would that work?

arslbbt commented 4 years ago

@arslbbt that link does not work.

Also, if you want to disable the button when the time is incorrect, just use an ngClass and bind to a boolean value that represents time validity. Would that work?

@danielmoncada please check this link again https://h2qutc.github.io/angular-material-components/ Please check the example. I need like this time validation. I used with query class to added change event to get value and bind but this is a cheaper code. I need a professional way to add in npm code.

arslbbt commented 4 years ago

@danielmoncada did you check the link?

Lonli-Lokli commented 3 years ago

@danielmoncada btw is there any support for invalid dates, eg if I manually enter 24/24/2020, will there be any possibility to highlight this invalid value?

arslbbt commented 3 years ago

@danielmoncada did you fix the issue?

danielmoncada commented 2 years ago

@arslbbt I haven't had time to look into this. This is over a year old, so just re-pining you on any updates. Feel free to create a PR if needed.