Add an example to the $fieldmangler widget (#4287)

Add an example to the field mangler widget demonstrating the `tiddler` param.
This commit is contained in:
Matt Lauber 2019-10-04 10:50:00 -04:00 committed by Jeremy Ruston
parent 81867a75cd
commit a9cc292dc9
1 changed files with 10 additions and 0 deletions

View File

@ -12,3 +12,13 @@ Add tag ''example'' to this tiddler (current)<$button message="tm-add-tag" param
Remove tag ''example'' to this tiddler (current)<$button message="tm-remove-tag" param="example">{{$:/core/images/delete-button}}</$button>
</$fieldmangler>
"""/>
<$macrocall $name=".example" n="2"
eg="""
<$fieldmangler tiddler="Hello World">
Add tag ''example'' to the Hello World tiddler<$button message="tm-add-tag" param="example">{{$:/core/images/new-button}}</$button>
<br>
Remove tag ''example'' to the Hello World tiddler<$button message="tm-remove-tag" param="example">{{$:/core/images/delete-button}}</$button>
</$fieldmangler>
"""/>