Have you examples or ideas how to add placeholder to the DateField
?
#4686
Closed
ArtemFedorchuk
started this conversation in
General
Replies: 1 comment 3 replies
-
A placeholder other than the default one isn't really possible because the individual segments are focusable. If you swapped the segments with plain text, then there would be no way to click on a segment to focus it. It sounds like you don't really want the date to be keyboard editable though? In that case, you could use a custom Button that triggers a popover with a Calendar inside to select the date, instead of a DateField. Then clicking on that button would open the calendar. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to do like this :

Currently, I have like this:



Are there ways to add the placeholder if the field has no value or is not focused?
And I want to do opening Calendar if you click anywhere inside the field not only the icon.
The Calendar should be closed if the DateField focus is lost.
Beta Was this translation helpful? Give feedback.
All reactions