Commit d4db4cc876ccbf033c6f745e3e29f0b8122bcfea

Authored by Steve MARECHAL
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 307 dojo_BorderContainer
308 308 (
309 309 List(CoreAttrs) attributes,
310   - String the_title,
  310 + Maybe(String) the_title,
311 311 BorderContainerDesign design,
312 312 Bool live_splitter,
313 313 Bool persist,
... ... @@ -315,9 +315,15 @@ public define HTML_Off_Form
315 315 String container,
316 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 329 public define HTML_Off_Form
... ...