Hello all!

We have done 2 powerful(as I think) features in QxTransformer:

- static includes
You can define part of your qxml code in additional file and simple
include it in main document.
For this purposes we've create tag <qxt:include>. It's like as include
directive in JSP.
Include can contain widgets, other includes and/or macros.
Usage:
<qxt:include src="/include/simpleInclude.qinc"/>

- macros
You can create reusable part of code or even your compound component and
separate it
in macro. You can pass variables in macro and use in code.
Something like this:
This macros uses 2 variables: labelName and fieldId.

Definition:
<qxt:define-macro name="textFieldRow">

        <qx:gridLayoutRow height="20" width="100%">
            <qx:gridLayoutCell>
                <qx:label html="$labelName" />
            </qx:gridLayoutCell>
            <qx:gridLayoutCell>
                <qx:textField width="100%" height="100%"
                          id="$fieldId"/>
            </qx:gridLayoutCell>
        </qx:gridLayoutRow>

    </qxt:define-macro>

Usage:
<qxt:use-macro src="/macros/macros.qinc" name="textFieldRow"
           labelName="Username"
           fieldId="userNameTextField"/>


For more information about new features see updated documentation:
https://qxtransformer.svn.sourceforge.net/svnroot/qxtransformer/trunk/docs/qxtransformer/sad
and code:
https://qxtransformer.svn.sourceforge.net/svnroot/qxtransformer/trunk/apps/qxtransformer-skeleton

Also step by step we are implementing showcase.

Cheers,
Siarhei Barysiuk






-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to