Closed zewa666 closed 2 months ago
Ah yeah that's probably a decent addition to go with, in Flatpickr we had the allowInput
, I was using that in my previous unit tests
Allows the user to enter a date directly into the input field. By default, direct entry is disabled.
I think it might be ok to add this as a new option into the VanillaCalendarOption interface, however I think it should stay as disabled or unset by default
~Should I assume that you'll soon go ahead with a PR? 😉~ Ah yeah I hadn't a chance to see all PRs yet 😆
You did use readonly though, should we use the same as Flatpickr or do you still prefer readonly? It might be a good idea to follow the same
I didnt know about the FlatPickr option but agree that it should be kept as allowEdit and yep it should stay false as default for backwards compat. I'll update the PR with those info
Clear and concise description of the problem
The new vanilla calender is working great, in combo with copy & paste you're also able to quickly fill out values. Sometimes though, its simply easier to change the date by actually typing it in. Currently slickgrid doesn't provide this feature as the input box is always readonly.
Suggested solution
When a date cell editor is opened, there should be an option to configure readonly mode. If disabled, users can enter dates in the input field and they get synced back to the date control.
Alternative
No response
Additional context
No response
Validations