Stephen,

I just looked at your code again - and noticed that although you are 
providing an "execute" function, you are not calling it. So your 
makeChildWidgets is never getting called.

So, further to my last suggestion I think you should do the following in 
your render():

        this.execute();
        var domNode = this.document.createElement("div");
        this.domNodes.push(domNode);
        parent.insertBefore(domNode,nextSibling);
        this.renderChildren(domNode,null);


This is a pretty standard pattern per the core widgets.

Chris.

On Tuesday, December 17, 2013 4:37:48 AM UTC-7, Chris wrote:
>
> Stephen,
>
> I think.....(nothing definitive here).....
>
> Part of the problem you are having is that your widget isn't quite doing 
> anything yet - for example it is not creating any dom nodes to contain the 
> child widgets.
>
> In your render function you are calling:
>
>       this.renderChildren(parent,null);
>
>
> which is calling this.renderChildren on the parent dom node of this widget 
> - i.e the dom node containing this widget.
>
> What you really should be doing is creating a new dom node to contain the 
> child widgets,  and then calling renderChildren on that dom node:
>
>       var domNode = this.document.createElement("div");
>       this.domNodes.push(domNode);
>       parent.insertBefore(domNode,nextSibling);
>       this.renderChildren(domNode,null);
>
>
> Hope this helps?
>
> Chris.
>
> On Tuesday, December 17, 2013 4:15:01 AM UTC-7, Stephan Hradek wrote:
>>
>> I've created an experimental widget called "Ex" 
>> http://skeeve.tiddlyspot.com/ to try to understand what the different 
>> methods of the widget are doing.
>>
>> In my "ex" tiddler I have this text:
>>
>> <$exgroup>
>> <$ex attr="test a">test 1</$ex>
>> <$ex attr="test b">test 2</$ex>
>> </$exgroup>
>>
>> And the widget code I define is calling several times console.log.But 
>> when I look at my console, I only see one invocation of my exgroup widget's 
>> renderer and none of the enclosed ex widgets.
>>
>> Also there is no child in the "this" object of the extgroup, while I can 
>> see the "ex" widgets in "exgroup"'s parsetree.
>>
>> Am I doing something wrong?
>>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to