Commit d4db4cc876ccbf033c6f745e3e29f0b8122bcfea
1 parent
beaa57dd
modification dojo_bordercontainer
Showing
1 changed file
with
10 additions
and
4 deletions
Show diff stats
calexium_lib/web/CXM_dojo.anubis
| @@ -307,7 +307,7 @@ public define HTML_Off_Form | @@ -307,7 +307,7 @@ public define HTML_Off_Form | ||
| 307 | dojo_BorderContainer | 307 | dojo_BorderContainer |
| 308 | ( | 308 | ( |
| 309 | List(CoreAttrs) attributes, | 309 | List(CoreAttrs) attributes, |
| 310 | - String the_title, | 310 | + Maybe(String) the_title, |
| 311 | BorderContainerDesign design, | 311 | BorderContainerDesign design, |
| 312 | Bool live_splitter, | 312 | Bool live_splitter, |
| 313 | Bool persist, | 313 | Bool persist, |
| @@ -315,9 +315,15 @@ public define HTML_Off_Form | @@ -315,9 +315,15 @@ public define HTML_Off_Form | ||
| 315 | String container, | 315 | String container, |
| 316 | HTML_Off_Form content | 316 | HTML_Off_Form content |
| 317 | ) = | 317 | ) = |
| 318 | - div([attr("dojoType", "dijit.layout.BorderContainer"), title(the_title), attr("dojoAttachPoint", container), | ||
| 319 | - attr("design", to_String(design)), attr("liveSplitters", live_splitter), attr("persist", persist), attr("closable",closable) . attributes ], | ||
| 320 | - content). | 318 | + with the_attributes = (List(CoreAttrs)) [attr("dojoType", "dijit.layout.BorderContainer"), attr("dojoAttachPoint", container), |
| 319 | + attr("design", to_String(design)), attr("liveSplitters", live_splitter), attr("persist", persist), | ||
| 320 | + attr("closable",closable) . attributes ], | ||
| 321 | + total_attributes = if the_title is | ||
| 322 | + { | ||
| 323 | + failure then the_attributes, | ||
| 324 | + success(t) then [title(t) . the_attributes] | ||
| 325 | + }, | ||
| 326 | + div(total_attributes, content). | ||
| 321 | 327 | ||
| 322 | 328 | ||
| 323 | public define HTML_Off_Form | 329 | public define HTML_Off_Form |