[dojo-Interest] Subwidgets and parameters

lancer emotion 16 lancer.emotion at gmail.com
Mon Dec 4 09:51:21 MST 2006


Hi folks, sorry if this has been already discussed, i tried to find it but
was unsuccessful.

I have many subwidgets inside a layout widget and i want to pass dynamically
parameters to they. How can i do this? I have something like this :

CCMReportsLayout js:

dojo.provide("dojo.widget.CCMReportsLayout");

dojo.require("dojo.widget.*");
dojo.require("dojo.html.display");
dojo.require("dojo.html.layout");

dojo.widget.defineWidget(
    'dojo.widget.CCMReportsLayout',
    dojo.widget.HtmlWidget,
    {
        templatePath:
dojo.uri.dojoUri("src/widget/templates/CCMReportsLayout.html"),


        isContainer: false,
        widgetsInTemplate: true
    }
);

CCMReportsLayout html:

<table width="100%" border="0" cellspacing="2" cellpadding="2">
    <tr>
        <td>
            <div dojoAttachPoint="_header" dojoType="CCMHeader" title="">
            </div>
        </td>
    </tr>
    <tr>
        <td align="center">
            <div dojoAttachPoint="_chart" dojoType="CCMChart" width=""
height="" src="">
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <div dojoAttachPoint="_options" dojoType="CCMOptions">
            </div>
        </td>
    </tr>
    <tr>
        <td class="tittab" dojoAttachPoint="_extras">
        </td>
    </tr>
    <tr>
        <td>
            <div dojoAttachPoint="_footer" dojoType="CCMFooter"
exportTitle="">
            </div>
        </td>
    </tr>
</table>

The main page just has this for calling the widget:

<div dojoType="CCMReportsLayout"></div>

Thanks in advance, any referecen will be aprecciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20061204/14191819/attachment.html


More information about the Dojo-interest mailing list