-
I'm tring to make a resizable sidebar tabs where I use const sidebarTabTitles = useFilter('[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]');
sidebarTabTitles.map((title) => {
const contentHTML = $tw.wiki.renderTiddler('text/html', title); Seems most of sidebar tabs' content resulted in empty HTML string, why? And the button is lost its onclick event handler, not triggering any message. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @linonetwo I think there's a typo there – your map function is not doing anything with the
|
Beta Was this translation helpful? Give feedback.
-
Besides that, if we want rendered widget rerender, we need to : parentWidget.children.push(transcludeWidgetNode); And in our react widget: refresh(changedTiddlers: IChangedTiddlers) {
return this.refreshChildren(changedTiddlers);
} |
Beta Was this translation helpful? Give feedback.
Hi @linonetwo
I think there's a typo there – your map function is not doing anything with the
contentHTML
variable. Here's a version that works on tiddlywiki.com: