Datepicker highlight date on open when "data-date" attribute set via javascript #718
Unanswered
sourcematters
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi fellow Flowbiters, when using the Datepicker component, I am setting the "data-date" attribute of my input after page load as I am fetching the current date with javascript. I then set that current date value to the attribute value, and the placeholder text. Both working fine and as expected.
What would be nice is if it would also indicate on the calendar popup what date the "data-date" attribute value is set to. Is there a way to do this currently or via javascript, or would this be an enhancement?
Also, when enabling the "datepicker-buttons", clicking the "Today" button jumps you back to the page containing the correct date, but would be nice if it also "selected" the date (and highlighted it on the calendar). Or maybe making this an option to how clicking the "Today" button behaves (ie: option to select the current date and set value to the input and close calendar, or option to simply do the default behavior of jumping to the current date "page" on the calendar popup, but not selecting the value or anything.)
Beta Was this translation helpful? Give feedback.
All reactions