How to make Dropdown Selector like the tag picker

211 views
Skip to first unread message

Adithya B

unread,
Apr 3, 2021, 12:54:05 AM4/3/21
to TiddlyWiki
Hi,
I want to add a custom field editor to my TW which behaves similar to the tag-picker. It should:
1) Allow the user to filter and select from list of tiddlers in a dropdown
2) Create a new tiddler with the confirmed title if the tiddler doesnt exist.

How to achieve this?  My intent is to create an archive of folk songs/art on TW.

I tried searching through past posts but i couldnt find anything. I know that I can look through the tag-picker macro and reconstruct it but the code is just too messy and I wouldnt enter that unless no other option.

Thanks!
Adithya

Mat

unread,
Apr 3, 2021, 2:30:48 AM4/3/21
to TiddlyWiki

Adithya B

unread,
Apr 3, 2021, 12:21:45 PM4/3/21
to TiddlyWiki
Thanks Mat. 

My requirement is slightly different from a select widget (with custom entries) - I want something like the tag picker edittemplate. The difference being that the tag-picker allows for multiple tags to be picked and deleted. My workflow would be something like:
  1. Allow the user to filter and select from list of tiddlers in a dropdown
    1. If selected, the tiddler title is added to the edit field as an encapsulated tag pill, which can be deleted using the cross button.
    2. Allow multiple such selections (or limit to one, depending on configuration)
  1. If the user writes a string and presses enter, create a new tiddler with the title if the tiddler doesnt exist.
Adithya


Reply all
Reply to author
Forward
0 new messages