JFXtras / jfxtras

A supporting library for JavaFX, containing helper classes, extended layouts, controls and other interesting widgets.
http://jfxtras.org
Other
599 stars 123 forks source link

LocalDateTimeTextField disable editing #103

Closed moctavianro closed 3 years ago

moctavianro commented 5 years ago

Hello How can i set a string date formatter in fxml layout? How can i make the field uneditable but keeo picker on? Can i set min and max values for it(disable the other dates)?

Thanks!

tbee commented 5 years ago

Sorry for the late response, my paid job is doing an end-of-year sprint.

1) dateFormat="yyyy-MM-dd HH:mm:ss" dateFormats="yyyy-MM-dd, yyyy-MM, yyyy" 2) no you can't, why do you want that? (If it is a good use case...) 3) no you can't at the moment, but I can see why that would make sense.

tbee commented 5 years ago

3) You could use the CalendarRangeCallback and the disabledCalendars collection to disable all dates in a given month (or partial months when the min or max is reached).