Tooltip on tag dropdown hover possible?

68 views
Skip to first unread message

leancoder

unread,
Sep 3, 2017, 10:19:14 PM9/3/17
to TiddlyWikiDev
I found tiddlywiki a month ago and its amazing! Thanks a lot!!
I do have a question, I am making a reference application and I want to be able to have a hover of the content of a tiddler which shows up when you hover of the tiddlers title in the dropdown of a tag. The actual tiddler text is only 1 paragraph long as it is so the tooltip would not overwhelm the GUI /design. Can it be done?
The answer I suppose lies somehow in interjecting a tooldtip macro in either $:/core/macros/list or $:/core/ui/TagTemplate (overridding the core - yikkes!).
Problem is I have no idea where to start. I am new in this.
If anyone could pitch in with some pointers would be great!
Thank you!

BJ

unread,
Sep 13, 2017, 1:05:22 PM9/13/17
to tiddly...@googlegroups.com
you can modify $:/core/macros/list adding a tooltip to the link surrounding the name:

\define list-tagged-draggable(tag,itemTemplate,elementTag:"div")
<$set name="tag" value="""$tag$""">
<$list filter="[<tag>tagging[]]">
<$elementTag$ class="tc-menu-list-item">
<$droppable actions=<<list-tagged-draggable-drop-actions>>>
<$elementTag$ class="tc-droppable-placeholder">
&nbsp;
</$elementTag$>
<$elementTag$>
<$transclude tiddler="""$itemTemplate$""">
<$link to={{!!title}} tooltip={{hovertext}}>
<$view field="title"/>
</$link>


where hovertext is a tiddler containing you text...

All the best

BJ

leancoder

unread,
Sep 17, 2017, 11:12:43 AM9/17/17
to TiddlyWikiDev
Thank you BJ!
I got it to work!!
I changed the hovertext like this and now its showing the actual tiddler as the hover in the dropdown!
<$link to={{!!title}} tooltip={{!!text}}>
Thank you so much. I would not have figured this out without help!
Reply all
Reply to author
Forward
0 new messages