Commit 0450e58457a01ac9c44d6aa6ade8c44c8ba3f133

Authored by David RENE
1 parent 3fc48444

add class in table option

calexium_lib/CXM_message_constants.anubis
@@ -144,3 +144,7 @@ public define Word32 _CXM_SUPERVISER_SERVICE_MSG_BASIS = 0x33772600. @@ -144,3 +144,7 @@ public define Word32 _CXM_SUPERVISER_SERVICE_MSG_BASIS = 0x33772600.
144 public define Word32 _CXM_SUPERVISER_SERVICE_ID = 0x33772600. 144 public define Word32 _CXM_SUPERVISER_SERVICE_ID = 0x33772600.
145 public define Word32 _CXM_SUPERVISER_GET_STATUS = 0x33772601. 145 public define Word32 _CXM_SUPERVISER_GET_STATUS = 0x33772601.
146 146
  147 +// *************************************************
  148 +// ************* KERO_PBX API *************
  149 +
  150 +public define Word32 _CXM_KERO_PBX_MSG_BASIS = 0x33780000. // Ask Boxes to publish their informations
calexium_lib/web/CXM_dojo.anubis
@@ -354,7 +354,7 @@ public define HTML_Off_Form @@ -354,7 +354,7 @@ public define HTML_Off_Form
354 List(Table_Option) attributes, 354 List(Table_Option) attributes,
355 )= 355 )=
356 table([attr("dojoType", "dojox.grid.DataGrid"), attr("id", html_id.id), attr("jsId", html_id.id), 356 table([attr("dojoType", "dojox.grid.DataGrid"), attr("id", html_id.id), attr("jsId", html_id.id),
357 - attr("class", "soria"), attr("singleClickEdit", "true"), attr("rowsPerPage", to_decimal(rowsPerPage)) . attributes], 357 + class("soria"), attr("singleClickEdit", "true"), attr("rowsPerPage", to_decimal(rowsPerPage)) . attributes],
358 empty, [], empty). 358 empty, [], empty).
359 359
360 360
calexium_lib/web/CXM_making_a_web_site.anubis
@@ -809,7 +809,8 @@ public type Table_Option: @@ -809,7 +809,8 @@ public type Table_Option:
809 RGB border_color), 809 RGB border_color),
810 width(Int), // sets a minimal width for the table 810 width(Int), // sets a minimal width for the table
811 percentage_width(Int), 811 percentage_width(Int),
812 - attr(String name, String value). 812 + attr(String name, String value),
  813 + class(String class_name).
813 814
814 815
815 public define Table_Option nude = border(0,0,0,rgb(0,0,0)). 816 public define Table_Option nude = border(0,0,0,rgb(0,0,0)).
@@ -842,7 +843,8 @@ public type Cell_Option: @@ -842,7 +843,8 @@ public type Cell_Option:
842 height(Int), // sets a minimal height for the cell 843 height(Int), // sets a minimal height for the cell
843 columns(Int), // lets the cell span over several columns 844 columns(Int), // lets the cell span over several columns
844 rows(Int), // lets the cell span over several rows 845 rows(Int), // lets the cell span over several rows
845 - nowrap. // do not allow text wrapping within the cell 846 + nowrap, // do not allow text wrapping within the cell
  847 + class(String class_name).
846 848
847 A list of 'Cell_Option' must be given with each cell and each row in a table. Options 849 A list of 'Cell_Option' must be given with each cell and each row in a table. Options
848 given with a row apply to all the cells in the row, but are superseded by options given 850 given with a row apply to all the cells in the row, but are superseded by options given
@@ -3468,7 +3470,8 @@ define String @@ -3468,7 +3470,8 @@ define String
3468 height(h2) then " height=\""+h2+"\"", 3470 height(h2) then " height=\""+h2+"\"",
3469 columns(n) then " colspan=\""+n+"\"", 3471 columns(n) then " colspan=\""+n+"\"",
3470 rows(n) then " rowspan=\""+n+"\"", 3472 rows(n) then " rowspan=\""+n+"\"",
3471 - nowrap then " nowrap" 3473 + nowrap then " nowrap",
  3474 + class(class_name) then " class=\""+class_name+"\""
3472 } 3475 }
3473 + format(t) 3476 + format(t)
3474 }. 3477 }.
@@ -3673,6 +3676,7 @@ define String @@ -3673,6 +3676,7 @@ define String
3673 width(w) then " width=\""+w+"\""+format(t,border_seen), 3676 width(w) then " width=\""+w+"\""+format(t,border_seen),
3674 percentage_width(p) then " width=\""+percent(p)+"%\""+format(t,border_seen), 3677 percentage_width(p) then " width=\""+percent(p)+"%\""+format(t,border_seen),
3675 attr(name, value) then " " + name + "=\"" + value + "\"" +format(t,border_seen), 3678 attr(name, value) then " " + name + "=\"" + value + "\"" +format(t,border_seen),
  3679 + class(name) then " class=\""+name+"\""
3676 } 3680 }
3677 }. 3681 }.
3678 3682