You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I'm trying to remove StartDate or EndDate key from DateTextFieldConfig. Unfortunately current API doesn't allow such operation. I found one way to do this :
config.remove(new Key<>("startDate", null));
but I treat it as a workaround rather then a good solution.
I've noticed few possibilities to make it easier and prettier:
when null is passed to 'withStartDate' or 'withEndDate' then remove key from config rather than set it to today's date
provide some 'without' methods to remove values from config
or just simply change keys visibility from private to public - than something like this:
config.remove(DateTextFieldConfig.StartDate);
can be used - which is in my opinion much better than now.
The text was updated successfully, but these errors were encountered:
Hi.
I'm trying to remove StartDate or EndDate key from DateTextFieldConfig. Unfortunately current API doesn't allow such operation. I found one way to do this :
config.remove(new Key<>("startDate", null));
but I treat it as a workaround rather then a good solution.
I've noticed few possibilities to make it easier and prettier:
config.remove(DateTextFieldConfig.StartDate);
can be used - which is in my opinion much better than now.
The text was updated successfully, but these errors were encountered: