]> err.no Git - sope/blob - sope-appserver/samples/WOxExtTest/CollapsibleContent.wox
include config.make in makefiles
[sope] / sope-appserver / samples / WOxExtTest / CollapsibleContent.wox
1 <?xml version='1.0' standalone='yes'?>
2 <var:component className="Frame" title="name"
3            xmlns="http://www.w3.org/1999/xhtml"
4            xmlns:var="http://www.skyrix.com/od/binding"
5            xmlns:const="http://www.skyrix.com/od/constant">
6
7   <form var:action="self">
8     <var:collapsible
9        const:condition  ="NO"
10        visibility       = "firstVisibility"
11        submitActionName ="clearClicks"
12        const:openedLabel = "first opened"
13        const:closedLabel = "first closed"
14        const:openedImageFileName = "expanded.gif"
15        const:closedImageFileName = "collapsed.gif">
16
17        <table border="0" bgcolor="#FAE8B8">
18          <tr>
19            <td>
20              content of the <b>first</b> component
21              <input type="checkbox" var:checked="isFirstChecked"/>
22            </td>
23          </tr>
24          <tr>
25            <td align="center"><a var:action="increaseClicks">click</a></td>
26          </tr>
27        </table>
28     </var:collapsible>
29   
30     <var:collapsible 
31        const:condition  = "YES"
32        visibility       = "secondVisibility"
33        submitActionName = "clearClicks"
34        const:openedLabel = "second opened"
35        const:closedLabel = "second closed"
36        const:openedImageFileName = "expanded.gif"
37        const:closedImageFileName = "collapsed.gif">
38        
39        <table border="0" bgcolor="#FAE8B8">
40          <tr>
41            <td>
42              content of the <b>second</b> component
43              <input type="checkbox" var:checked="isSecondChecked"/>
44            </td>
45          </tr>
46          <tr>
47            <td align="center"><a var:action="increaseClicks">click</a></td>
48          </tr>
49        </table>
50     </var:collapsible>
51     
52     <var:collapsible
53        const:condition="NO"
54        visibility="thirdVisibility"
55        submitActionName="clearClicks"
56        const:openedLabel = "third open"
57        const:closedLabel = "third closed"
58        const:openedImageFileName = "expanded.gif"
59        const:closedImageFileName = "collapsed.gif">
60
61        <table border="0" bgcolor="#FAE8B8">
62          <tr>
63            <td>
64              content of the <b>third</b> component
65              <input type="checkbox" var:checked="isThirdChecked"/>
66            </td>
67          </tr>
68          <tr>
69            <td align="center"><a var:action="increaseClicks">click</a></td>
70          </tr>
71        </table>
72     </var:collapsible>
73   </form>
74   
75   <br/>
76   clicks: <var:string value="clicks"/>
77 </var:component>