Hi Tobi,

I think you are looking for:

this.refreshChildren(changedTiddlers);

-Felix



On 12/11/2015 08:53 PM, Tobias Beer wrote:
> Hi everyone (possibly @Jeremy),
>
> How can I force-refresh a child widget from its parent?
>
> I have changed the content / children of my button widget via...
>
> |
> childButton.children =this.wiki.parseText(
>     "text/vnd.tiddlywiki",
>     newLabel,
>     {parseAsInline:true}
> ).tree;
> |
>
> ...but then calling:
>
> |
> childButton.refresh();
> |
>
> wouldn't work since, the ButtonWidget refresh handler doesn't appear
> to check for any changes to its content.
>
> So, I tried to run:
>
> |
> childButton.refreshSelf();
> |
>
> ...but that didn't work either.
>
> Any ideas how I can force-refresh my childButton without having to
> refresh my entire widget?
>
> Best wishes,
>
> Tobias.
> -- 
> You received this message because you are subscribed to the Google
> Groups "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywikidev/d2e86207-ab3c-4809-b1d9-d10697269c17%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywikidev/d2e86207-ab3c-4809-b1d9-d10697269c17%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 
"TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/BLU436-SMTP1463F0BB8D2DBA646B9837FCEEA0%40phx.gbl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to