Oh, did you mean examples of how I send the messages? Right now they are
setup to be used in an EditTemplate (as mentioned).

That can be found in the Plugin's shadow tiddler:

$:/plugins/telarus/jsonmangler/editTemplate/Json

Here is an example of some of the buttons from there (cut out a few buttons
for the sake of the example).
The <<fa-icon>> macro is just an easy way of transcluding FontAwesome icons
(code also included with the plugin).

<$list filter="[is[current]type[application/json]]">

<div class="json-tools">

<$jsonmangler title=<<currentTiddler>> >

<!-- /* Refresh Json */ -->
<$button tooltip="Refresh Json Formatting" class="nottc-btn-invisible
tc-tiddlylink" style="float: left; margin-right: 1em; padding: 4px;">
<$action-sendmessage $message="tm-json-refresh" />
<<fa-icon "retweet" "fa-lg fa-fw">> ''Refresh''
</$button>

<!-- /* Flatten/Unflatten */ -->
<$reveal type="nomatch" state="!!flat" text="true">
<$button tooltip="Flatten This Json" class="nottc-btn-invisible
tc-tiddlylink" style="float: left; margin-right: 1em; padding: 4px;">
<$action-sendmessage $message="tm-json-flatten" />
<<fa-icon "list-ul" "fa-lg fa-fw">> ''Flatten''
</$button>
</$reveal>

<$reveal type="match" state="!!flat" text="true">
<$button tooltip="Unflatten This Json" class="nottc-btn-invisible
tc-tiddlylink" style="float: left; margin-right: 1em; padding: 4px;">
<$action-sendmessage $message="tm-json-unflatten"/>
<<fa-icon "share-alt" "fa-lg fa-fw">> ''Unflatten''
</$button>
</$reveal>

</$jsonmangler>

</div>

<div class="clear" style="clear: both;"></div>

</$list>



On Thu, Sep 7, 2017 at 8:34 AM, Joshua Fontany <[email protected]>
wrote:

> Hi, thanks for the tip on "Issues", I've activated that for my repo.
>
> The widget is fully implemented in the Edit template of any tiddler with
> "type" = "application/json" once the plugin is installed.
>
> For example, edit any of the Json Tiddlers linked to at the bottom of my
> example Wiki's "Hello There" tiddler. You will see the new buttons in the
> Edit template that use the new messages.
> https://joshuafontany.github.io/TW5-JsonManglerPlugin/
>
> Best,
> Joshua Fontany
>
> On Thursday, September 7, 2017 at 1:38:17 AM UTC-7, PMario wrote:
>>
>> Hi Joshua,
>>
>> Very interesting. Thanks for sharing. ... but  :)
>>
>> - There is no exaple tiddler, where you can play with the new commands.
>> IMO it would be easier to use them, if we just need to copy paste :)
>>
>> - please enable the "issues tab" at your github repo. So we can open
>> issues. (github disables it, if you fork a repo)
>>
>> thx
>> mario
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/tiddlywiki/OMaRZ1mOZ2w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/tiddlywiki/4ffda938-b9bf-4139-ac64-6f7578ecde70%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/4ffda938-b9bf-4139-ac64-6f7578ecde70%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAM1fME59Wqsf1j%2BVNMdZ09vVQpja%3DyMD2QwMnZiOXasyOa%3DUVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to