Hi Tony,

On Saturday, February 1, 2020 at 6:53:23 AM UTC+1, TonyM wrote:
>
> Ton,
>
> Thanks for your feedback. I suspect I broke something not your example was 
> broken, I can't reproduce it now.
>
> This may be a "flight of fancy" but I have started to realise anything can 
> be designed from its interface. 
> Many of my home grown solutions involve a button, but now I see If a Build 
> a button in which to design a solution its quicker and simpler, especially 
> If I have templates.
>
> Its another level of abstraction 
>
> Can the whole of tiddlywiki's possiblities start with a button?
>

Yeah, lots of things in TiddlyWiki are triggered by button widgets as we 
can see here <https://tiddlywiki.com/#ButtonWidget>. 

>
>    1. Buttons that open a tiddler with a certain functionality. I call it 
>    'button to' buttons
>    2. Buttons that toggle a certain setting or tag on a tiddler
>    3. Buttons that toggle a certain setting or tag GLOBALY
>    4. Buttons that toggle a macro or plugins operation
>    5. Buttons that Trigger a macro or plugins operation
>    6. Buttons that trigger anything
>    7. Buttons that trigger a modified version of a core button or function
>    8. Buttons that contain a set of buttons (like the more buttons)
>    9. Buttons that operate on text (editor toolbar buttons)
>    10. Buttons that open links, tabs, windows, iframes, dialogues, 
>    modals, notify
>    11. Buttons that log something in another tiddler
>    12. Buttons that create a tiddler from a template
>
> That is a lot of buttons; you need to know what can be combined in making 
them.
When I have more time I 'll have a better look at all the core buttons.

I upgrade my macro to:

\define buttonto(tiddler,image,description,caption,tag)
<$button to="$tiddler$" tooltip="$description$" 
class=<<tv-config-toolbar-class>>>
<$list filter="[all[current]!has[caption]]">
<$action-setfield $field="caption" $value="{{$image$}} $caption$"/>
<$action-setfield $field="description" $value="$description$"/>
<$action-setfield $field="tags" $value="$tag$"/>
</$list>
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$image$}}
</$list>
<$list filter="[<tv-config-toolbar-text>match[yes]]">
<$text text="$caption$"/>
</$list>
</$button>
\end

So after the first click (when a tag and fields are created) the action widgets 
will not be active anymore.
And I corrected the tooltip which uses the text in the description field (the 
naming in buttons is rather confusing with caption, description, tooltip, hint, 
text).

Cheers,

Ton

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/db03b9fc-28f3-41e2-a4b5-6b1d750ec489%40googlegroups.com.

Reply via email to