Commit 6e6ff6582447ba26de42538dec8bead005166181
1 parent
cc6f10eb
webmail: split panes
Showing
1 changed file
with
22 additions
and
3 deletions
Show diff stats
calexium_lib/web/CXM_dojo.anubis
| @@ -127,11 +127,18 @@ public define HTML_Off_Form | @@ -127,11 +127,18 @@ public define HTML_Off_Form | ||
| 127 | ( | 127 | ( |
| 128 | String id, | 128 | String id, |
| 129 | String region, | 129 | String region, |
| 130 | - String title, | 130 | + Bool splitter, |
| 131 | HTML_Off_Form content | 131 | HTML_Off_Form content |
| 132 | ) = | 132 | ) = |
| 133 | sequence([ | 133 | sequence([ |
| 134 | - literal("<div id=\"" + id + "\" dojoType=\"dijit.layout.ContentPane\" title=\"" + title + "\" region=\"" + region + "\">"), | 134 | + literal("<div id=\"" + id + "\" dojoType=\"dijit.layout.ContentPane\" region=\"" + region + "\" splitter=\"" |
| 135 | + +( | ||
| 136 | + if splitter then "true" | ||
| 137 | + else "false" | ||
| 138 | + )+ | ||
| 139 | + "\" style=\"overflow: hidden;\""+ | ||
| 140 | + // "\" minSize=\"20em\""+ | ||
| 141 | + "\">"), | ||
| 135 | content, | 142 | content, |
| 136 | literal("</div>") | 143 | literal("</div>") |
| 137 | ]). | 144 | ]). |
| @@ -143,11 +150,23 @@ public define HTML_Off_Form | @@ -143,11 +150,23 @@ public define HTML_Off_Form | ||
| 143 | HTML_Off_Form content | 150 | HTML_Off_Form content |
| 144 | ) = | 151 | ) = |
| 145 | sequence([ | 152 | sequence([ |
| 146 | - literal("<div id=\"" + id + "\" dojoType=\"dijit.layout.TabContainer\" style=\"width:54em;height:30em\">"), | 153 | + literal("<div id=\"" + id + "\" dojoType=\"dijit.layout.TabContainer\" style=\"width:70em;height:50em\">"), |
| 147 | content, | 154 | content, |
| 148 | literal("</div>") | 155 | literal("</div>") |
| 149 | ]). | 156 | ]). |
| 150 | 157 | ||
| 158 | +public define HTML_Off_Form | ||
| 159 | + dojo_BorderContainer | ||
| 160 | + ( | ||
| 161 | + String id, | ||
| 162 | + String title, | ||
| 163 | + HTML_Off_Form content | ||
| 164 | + ) = | ||
| 165 | + sequence([ | ||
| 166 | + literal("<div id=\"" + id + "\" dojoType=\"dijit.layout.BorderContainer\" title=\"" + title + "\" design=\"sidebar\">"), | ||
| 167 | + content, | ||
| 168 | + literal("</div>") | ||
| 169 | + ]). | ||
| 151 | 170 | ||
| 152 | 171 | ||
| 153 | public define HTML_Off_Form | 172 | public define HTML_Off_Form |