Revision: 3770
          http://vexi.svn.sourceforge.net/vexi/?rev=3770&view=rev
Author:   jeffbuhrt
Date:     2010-01-07 21:36:35 +0000 (Thu, 07 Jan 2010)

Log Message:
-----------
spelling correction and hint on gridproxy usage... Noted how the boxes of the 
gridproxy'd template will individually become children of the grid.

Added Paths:
-----------
    trunk/widgets/org.vexi.widgets/src/vexi/layout/gridproxy.t

Added: trunk/widgets/org.vexi.widgets/src/vexi/layout/gridproxy.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/vexi/layout/gridproxy.t                  
        (rev 0)
+++ trunk/widgets/org.vexi.widgets/src/vexi/layout/gridproxy.t  2010-01-07 
21:36:35 UTC (rev 3770)
@@ -0,0 +1,37 @@
+<!-- Copyright 2009 - see COPYING for details [LGPL] -->
+
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta">
+    <meta:doc>
+        <author>Charles Goodwin</author>
+        <name>Grid Proxy</name>
+        <desc>For slotting templated children into a grid</desc>
+        <usage>
+            Useful for managing layout in a grid but still being able
+            to use templates:
+            
+            Example mytemplate.t:
+            <vexi>
+               <gridproxy />
+               <ui:box>
+                   <ui:box id="A" />
+                   <ui:box id="B" />
+               </ui:box>
+            </vexi>
+            
+            Here all $A boxes are in col 1, all $B boxes in col 2:
+            <grid cols="2">
+                <mytemplate />
+                <mytemplate />
+                <mytemplate />
+            </grid>
+            
+            Note: Three copies of the the boxes $A and $B will each appear be 
children of the grid vs
+                  three mytemplates being a child of grid. [Helpful hint if 
you do something that walks
+                  the children of grid like we did. -Jeff]
+        </usage>
+    </meta:doc>
+    
+    <ui:box v_gridproxy="true">
+        thisbox.v_gridcontent = thisbox;
+    </ui:box>
+</vexi>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to