From 0450e58457a01ac9c44d6aa6ade8c44c8ba3f133 Mon Sep 17 00:00:00 2001 From: David RENE Date: Wed, 20 Jun 2012 08:23:24 +0000 Subject: [PATCH] add class in table option --- calexium_lib/CXM_message_constants.anubis | 4 ++++ calexium_lib/web/CXM_dojo.anubis | 2 +- calexium_lib/web/CXM_making_a_web_site.anubis | 10 +++++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/calexium_lib/CXM_message_constants.anubis b/calexium_lib/CXM_message_constants.anubis index 5460860..bb46b83 100644 --- a/calexium_lib/CXM_message_constants.anubis +++ b/calexium_lib/CXM_message_constants.anubis @@ -144,3 +144,7 @@ public define Word32 _CXM_SUPERVISER_SERVICE_MSG_BASIS = 0x33772600. public define Word32 _CXM_SUPERVISER_SERVICE_ID = 0x33772600. public define Word32 _CXM_SUPERVISER_GET_STATUS = 0x33772601. +// ************************************************* +// ************* KERO_PBX API ************* + +public define Word32 _CXM_KERO_PBX_MSG_BASIS = 0x33780000. // Ask Boxes to publish their informations diff --git a/calexium_lib/web/CXM_dojo.anubis b/calexium_lib/web/CXM_dojo.anubis index 1ad3210..3c7ee13 100644 --- a/calexium_lib/web/CXM_dojo.anubis +++ b/calexium_lib/web/CXM_dojo.anubis @@ -354,7 +354,7 @@ public define HTML_Off_Form List(Table_Option) attributes, )= table([attr("dojoType", "dojox.grid.DataGrid"), attr("id", html_id.id), attr("jsId", html_id.id), - attr("class", "soria"), attr("singleClickEdit", "true"), attr("rowsPerPage", to_decimal(rowsPerPage)) . attributes], + class("soria"), attr("singleClickEdit", "true"), attr("rowsPerPage", to_decimal(rowsPerPage)) . attributes], empty, [], empty). diff --git a/calexium_lib/web/CXM_making_a_web_site.anubis b/calexium_lib/web/CXM_making_a_web_site.anubis index 67d47ec..501e6b5 100644 --- a/calexium_lib/web/CXM_making_a_web_site.anubis +++ b/calexium_lib/web/CXM_making_a_web_site.anubis @@ -809,7 +809,8 @@ public type Table_Option: RGB border_color), width(Int), // sets a minimal width for the table percentage_width(Int), - attr(String name, String value). + attr(String name, String value), + class(String class_name). public define Table_Option nude = border(0,0,0,rgb(0,0,0)). @@ -842,7 +843,8 @@ public type Cell_Option: height(Int), // sets a minimal height for the cell columns(Int), // lets the cell span over several columns rows(Int), // lets the cell span over several rows - nowrap. // do not allow text wrapping within the cell + nowrap, // do not allow text wrapping within the cell + class(String class_name). A list of 'Cell_Option' must be given with each cell and each row in a table. Options given with a row apply to all the cells in the row, but are superseded by options given @@ -3468,7 +3470,8 @@ define String height(h2) then " height=\""+h2+"\"", columns(n) then " colspan=\""+n+"\"", rows(n) then " rowspan=\""+n+"\"", - nowrap then " nowrap" + nowrap then " nowrap", + class(class_name) then " class=\""+class_name+"\"" } + format(t) }. @@ -3673,6 +3676,7 @@ define String width(w) then " width=\""+w+"\""+format(t,border_seen), percentage_width(p) then " width=\""+percent(p)+"%\""+format(t,border_seen), attr(name, value) then " " + name + "=\"" + value + "\"" +format(t,border_seen), + class(name) then " class=\""+name+"\"" } }. -- libgit2 0.21.4