diff --git a/calexium_lib/web/CXM_dojo.anubis b/calexium_lib/web/CXM_dojo.anubis index 7569de2..7d1b488 100644 --- a/calexium_lib/web/CXM_dojo.anubis +++ b/calexium_lib/web/CXM_dojo.anubis @@ -302,10 +302,12 @@ public define HTML_Off_Form String the_title, Bool live_splitter, Bool persist, + Bool closable, + String container, HTML_Off_Form content ) = - div([attr("dojoType", "dijit.layout.BorderContainer"), title(the_title), - attr("design", "sidebar"), attr("liveSplitters", live_splitter), attr("persist", persist) . attributes ], + div([attr("dojoType", "dijit.layout.BorderContainer"), title(the_title), attr("dojoAttachPoint", container), + attr("design", "sidebar"), attr("liveSplitters", live_splitter), attr("persist", persist), attr("closable",closable) . attributes ], content). @@ -336,13 +338,40 @@ public define HTML_Off_Form public define HTML_Off_Form dojo_button ( - HtmlId html_id, - String name, - String iconclass, - String tip_msg, - String execute, - ) - = + HtmlId html_id, + String name, + String iconclass, + Maybe(String) tip_msg, + String execute, + )= literal(" - - " + tip_msg + ""). + " + + if tip_msg is + { + failure then "", + success(tip) then + "" + tip + "" + }). + + +public define HTML_Off_Form + dojo_declaration + ( + String name, + List(CoreAttrs) attributes, + HTML_Off_Form content + )= + div([attr("dojoType", "dijit.Declaration"), attr("widgetClass", name) . attributes ], + content). + + +public define HTML_Off_Form + dojo_editor + ( + List(CoreAttrs) attributes, + HTML_Off_Form text + )= + div([attr("dojoType", "dijit.Editor"), attr("style", "overflow:auto"), + attr("extraPlugins", "['createLink','insertImage',{name:'dijit._editor.plugins.FontChoice', command: 'fontName', generic: true},'fontSize']") + . attributes], text). + -- libgit2 0.21.4