ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

Suggestions for datepicker

Open coffeymatt opened this issue 6 years ago • 7 comments

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

coffeymatt avatar Jun 14 '18 10:06 coffeymatt

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.

robinbihun avatar Jun 15 '18 16:06 robinbihun

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

raydawg2000 avatar Jun 20 '18 18:06 raydawg2000

I would like to see the second one be an option, as soon as possible.

ankurraiyani avatar Jun 21 '18 11:06 ankurraiyani

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.

rkulinski avatar Jul 18 '18 14:07 rkulinski

Yes we really need the second option as soon as possible. Also it should only allow digits.

ankurraiyani avatar Aug 02 '18 05:08 ankurraiyani

+1 for clear button

reddevilzee avatar Aug 07 '18 17:08 reddevilzee

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

N1RESH14 avatar Nov 01 '23 18:11 N1RESH14