Commit 0d2239e762d2d3ad1090f2010ce63c76d0d7ac4a
1 parent
6c9765c0
dojo toaster added
Showing
1 changed file
with
45 additions
and
1 deletions
Show diff stats
calexium_lib/web/CXM_dojo.anubis
| @@ -20,13 +20,41 @@ read mailfountain_constants.anubis | @@ -20,13 +20,41 @@ read mailfountain_constants.anubis | ||
| 20 | read mailfountain_types.anubis | 20 | read mailfountain_types.anubis |
| 21 | read common/language_management.anubis | 21 | read common/language_management.anubis |
| 22 | 22 | ||
| 23 | -read common/generic_page.anubis | ||
| 24 | read tools/mf_loggers.anubis | 23 | read tools/mf_loggers.anubis |
| 25 | read system/logger.anubis | 24 | read system/logger.anubis |
| 26 | 25 | ||
| 27 | public type Dojo_Grid_Data : | 26 | public type Dojo_Grid_Data : |
| 28 | grid_data(String). | 27 | grid_data(String). |
| 29 | 28 | ||
| 29 | +public type Position_Direction: | ||
| 30 | + brup, | ||
| 31 | + brleft, | ||
| 32 | + blup, | ||
| 33 | + blright, | ||
| 34 | + trdown, | ||
| 35 | + trleft, | ||
| 36 | + tldown, | ||
| 37 | + tlright. | ||
| 38 | + | ||
| 39 | +define String | ||
| 40 | + pos_dir_to_str | ||
| 41 | + ( | ||
| 42 | + Position_Direction pos | ||
| 43 | + )= | ||
| 44 | + if pos is | ||
| 45 | + { | ||
| 46 | + brup then "br-up", | ||
| 47 | + brleft then "br-left", | ||
| 48 | + blup then "bl-up", | ||
| 49 | + blright then "bl-right", | ||
| 50 | + trdown then "tr-down", | ||
| 51 | + trleft then "tr-left", | ||
| 52 | + tldown then "tl-down", | ||
| 53 | + tlright then "tl-right" | ||
| 54 | + }. | ||
| 55 | + | ||
| 56 | + | ||
| 57 | + | ||
| 30 | public define HTML_Off_Form | 58 | public define HTML_Off_Form |
| 31 | dojo_button | 59 | dojo_button |
| 32 | ( | 60 | ( |
| @@ -495,3 +523,19 @@ public define HTML_In_Form | @@ -495,3 +523,19 @@ public define HTML_In_Form | ||
| 495 | )= | 523 | )= |
| 496 | // selector_c([attr("dojoType", "dijit.form.ComboBox") . attributes], label, id, name, 1, list_data, selected, non_mandatory). | 524 | // selector_c([attr("dojoType", "dijit.form.ComboBox") . attributes], label, id, name, 1, list_data, selected, non_mandatory). |
| 497 | selector_c([], label, id, name, 1, list_data, selected). | 525 | selector_c([], label, id, name, 1, list_data, selected). |
| 526 | + | ||
| 527 | +public define HTML_Off_Form | ||
| 528 | + dojo_toaster | ||
| 529 | + ( | ||
| 530 | + List(CoreAttrs) attributes, | ||
| 531 | + HtmlId html_id, | ||
| 532 | + String message_topic, | ||
| 533 | + Position_Direction position_direction, | ||
| 534 | + Bool separator | ||
| 535 | + )= | ||
| 536 | + div(append(if separator then [attr("separator","<hr>")] | ||
| 537 | + else [], [attr("dojoType", "dojox.widget.Toaster"), attr("messageTopic", message_topic), | ||
| 538 | + attr("positionDirection", pos_dir_to_str(position_direction)), id(html_id.id) | ||
| 539 | + . attributes ]), | ||
| 540 | + literal("")). | ||
| 541 | + |