-
Layouts are other ways to display tiddlers. But if you want to open a tiddler in the default layout, you need to $tw.wiki.setText('$:/layout', 'text', undefined, '');
$tw.rootWidget.dispatchEvent({
type: 'tm-navigate',
navigateTo: title,
}); but this is not working, because And you can't do this with So in wikitext this is also not working
My layouts are all wrapped within this copied from the default layout.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This works in calendar layout. Don't know why but button's
Or do this in js, this works $tw.wiki.setText('$:/layout', 'text', undefined, '', { suppressTimestamp: true });
parentWidget?.dispatchEvent({
type: 'tm-navigate',
navigateTo: title,
}); parentWidget will work even in foreign layout, if that layout is wrapped within For button to work, Wrap your layout with
otherwise button action that need to navigate back to default layout won't work properly. If you wrap it correctly, then these works:
If you want link to work, add additional message catcher
|
Beta Was this translation helpful? Give feedback.
-
Don't forget add icon
|
Beta Was this translation helpful? Give feedback.
This works in calendar layout. Don't know why but button's
to
works...Or do this in js, this works
parentWidget will work even in foreign layout, if that layout is wrapped within
<$navigator story="$:/StoryList" history="$:/HistoryList"
For button to work, Wrap yo…