Native HTML + TiddlyWiki Date picker #7520
Replies: 5 comments 5 replies
-
Hi @AnthonyMuscio I strongly agree that we need to have an easy to use date picker in the core. I'm not sure if this macro is the right direction. In the new post-v5.3.0 world this should be a procedure, or even possibly a wikitext widget. |
Beta Was this translation helpful? Give feedback.
-
Implentation using procedure and custom widgets.
Date & time picker widget:
|
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
-
Not exactly although close. By not setting the value in a html field the picker never shows the selected date, although you can set it. We are almost there, the default parameter may help but the following do not work;
If you look at the raw html generated you can see why a date is not displayed;
That is the value is not set to the default which is of the HTML form YYYY-0MM-0DD Can this be fixed in the edit-text widget? or do we make a new or custom widget? Once set this works <input type="date" value= |
Beta Was this translation helpful? Give feedback.
-
I found a "full" solution and present $set.date.v1
|
Beta Was this translation helpful? Give feedback.
-
Following on from #6377 I want to share a date picker code pattern to illustrate how we may build one for inclusion in the core.
Outstanding issues
I will attach the package for testing on tiddlywiki.com shortly
date-picker.json.txt
Remove the .txt to import.
Macros to demonstrate how simple it can be.
Beta Was this translation helpful? Give feedback.
All reactions