Replies: 2 comments 1 reply
-
One approach is to create a parseTree for the children you want to create and insert that as the children for your widget in execute() and then call makeChildWidgets() See #5799 (comment) The other approach would be to use wiki.makeTranscludeWidget() method. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I was confused by the widget API, so I have to use wikitext to achieve transclusion... creator: LinOnetwo
tags: $:/tags/ViewTemplate
title: $:/plugins/linonetwo/zx-script/OutputBar
list-before: $:/plugins/linonetwo/inverse-link-and-folder/infobar
type: text/vnd.tiddlywiki
<$vars currentTiddler={{{[{!!title}addprefix[$:/state/linonetwo/zx-script/output/]is[missing]then[]]~[{!!title}addprefix[$:/state/linonetwo/zx-script/output/]] }}}>
{{||$:/core/ui/ViewTemplate/body}}
</$vars> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing a widget, in
render()
I simply set innerHtml, but I hope I can render text using$:/core/ui/ViewTemplate/body
It just output plain text...
I want to achieve something like this in JS:
Is there an example to look at?
Beta Was this translation helpful? Give feedback.
All reactions