ngx-bootstrap
ngx-bootstrap copied to clipboard
Suggestions for datepicker
It would be great if the datepicker had a couple more capabilities:
-
[ ] Option to prevent user typing their own input, i.e. force them to use the picker
-
[ ] If you do allow typed input, mask it so it has to follow the format
-
[ ] Include a clear button or x that removes the value
I would like to see the second one be an option, definitely. The other two, i see as nice to have - usually i have users request to type, but not a request to not be able to type a date.
Option to prevent user typing their own input, i.e. force them to use the picker
I just set the input field to readonly and that works well for me
I would like to see the second one be an option, as soon as possible.
Yes. Second option is great. But IMO manual input should update calendar. Now we can have situation where value inside input is different than the one currently selected in datepicker - which seems kind of 'buggy' behaviour.
Yes we really need the second option as soon as possible. Also it should only allow digits.
+1 for clear button
is it possible to display date picker click on the calendar icon only? (I want input field and not display date picker focus on this input).