Has anyone seen a ViewTool Bar button "date Picker"?

I would like to know if one exists, otherwise I think one would be good.

  • To be in the toolbar it needs to be a single button and the dropdown is the picker

Perhaps it could be made conditional such as if a tiddler has an empty date field it appears and to can select the date/and or time and stamp the field with a tiddlywiki format date stamp.

Bump, If no one knows any prior work on this then it seems to me something we should build.

  • My own attempts have being thwarted by popups in side the toolbar, or more dropdown not working correctly.
1 Like

I just experimented briefly with cloning $:/core/ui/Buttons/more-tiddler-actions and replacing the dropdown contents with the $edit-date widget from this date-picker plugin.

  • I used the icon packaged with the plugin for my new dropdown button.
  • I also added a field class: tc-popup-keep to prevent the popup from immediately closing when you click into the calendar, and that seems to work.
  • The initial ViewToolbar button dropdown does close if you interact with one of the showTime dropdowns, but it doesn’t close the calendar (until you click outside it) and the chosen field seems to update correctly based on selections.
  • I added an $edit-text widget to define the field to be edited, with the date field as a fallback when no other field was specified, and that also seemed to work.
  • It’d be easy to conditionally show or hide the toolbar button.

I’m not sure what problems you were running into, but I hope that at least some of this may be helpful.

1 Like

Have you tried $:/plugins/kixam/datepicker , TW5 CPL Wiki — TiddlyWiki5 Plugin Library for TiddlyWiki Chinese Communities

it provides a <$edit-date> widget

Thanks @etardiff that looks like what I want, I need to revisit this, for some reason I had given up on that plugin.

  • Yes, I had used it in the past, and it is related to @etardiff’s solution.

Thanks all.