Commit 49b8cd889991a901c21ccc51081f72ebe5d554ad

Authored by Steve MARECHAL
1 parent 6e6ff658

dojo toolbar added

Showing 1 changed file with 29 additions and 2 deletions   Show diff stats
calexium_lib/web/CXM_dojo.anubis
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 */ 7 */
8 8
9 read calexium_lib/web/CXM_making_a_web_site.anubis 9 read calexium_lib/web/CXM_making_a_web_site.anubis
  10 +read tools/base64.anubis
10 read tools/basis.anubis // required for 'make_directory' 11 read tools/basis.anubis // required for 'make_directory'
11 read locale/L3LanguageInfo.anubis 12 read locale/L3LanguageInfo.anubis
12 13
@@ -136,7 +137,7 @@ public define HTML_Off_Form @@ -136,7 +137,7 @@ public define HTML_Off_Form
136 if splitter then "true" 137 if splitter then "true"
137 else "false" 138 else "false"
138 )+ 139 )+
139 - "\" style=\"overflow: hidden;\""+ 140 + // "\" style=\"overflow: auto;\""+
140 // "\" minSize=\"20em\""+ 141 // "\" minSize=\"20em\""+
141 "\">"), 142 "\">"),
142 content, 143 content,
@@ -172,7 +173,33 @@ public define HTML_Off_Form @@ -172,7 +173,33 @@ public define HTML_Off_Form
172 public define HTML_Off_Form 173 public define HTML_Off_Form
173 dojo_tree 174 dojo_tree
174 ( 175 (
175 - String id, 176 + String id,
176 )= 177 )=
177 literal("<div id=\"" + id + "\"</div>"). 178 literal("<div id=\"" + id + "\"</div>").
178 179
  180 +
  181 +public define HTML_Off_Form
  182 + dojo_Toolbar
  183 + (
  184 + String id,
  185 + HTML_Off_Form content
  186 + )=
  187 + sequence([
  188 + literal("<div dojoType=\"dijit.Toolbar\" region=\"top\" id =\"" + id + "\">"),
  189 + content,
  190 + literal("</div>")
  191 + ]).
  192 +
  193 +
  194 +public define HTML_Off_Form
  195 + dojo_button
  196 + (
  197 + String id,
  198 + String name,
  199 + String iconclass,
  200 + String tip_msg,
  201 + )
  202 + =
  203 + literal("
  204 + <button dojoType=\"dijit.form.Button\" id=\"" + id + "\" iconClass=\"" + iconclass + "\">" + name + "</button>
  205 + <span dojoType=\"dijit.Tooltip\" connectId=\"" + id + "\">" + tip_msg + "</span>").