date-time-picker icon indicating copy to clipboard operation
date-time-picker copied to clipboard

invalid time validation not fired

Open arslbbt opened this issue 4 years ago • 6 comments

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

arslbbt avatar Sep 09 '20 05:09 arslbbt

@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 avatar Sep 09 '20 07:09 danielmoncada

@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 avatar Sep 09 '20 16:09 arslbbt

@danielmoncada did you check the link?

arslbbt avatar Sep 11 '20 05:09 arslbbt

@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?

Lonli-Lokli avatar Oct 08 '20 21:10 Lonli-Lokli

@danielmoncada did you fix the issue?

arslbbt avatar Nov 10 '20 07:11 arslbbt

@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.

danielmoncada avatar Dec 05 '21 06:12 danielmoncada