diff --git a/calexium_lib/web/CXM_dojo.anubis b/calexium_lib/web/CXM_dojo.anubis index 9de2b8b..ad3b57f 100644 --- a/calexium_lib/web/CXM_dojo.anubis +++ b/calexium_lib/web/CXM_dojo.anubis @@ -193,10 +193,12 @@ public define HTML_Off_Form dojo_grid ( HtmlId html_id, - List(CoreAttrs) attributes, - ) - = - div_empty([id(html_id.id), attr("dojoType", "dojox.Grid") . attributes ]). + Int rowsPerPage, + 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], + empty, [], empty). public define HTML_Off_Form diff --git a/calexium_lib/web/CXM_making_a_web_site.anubis b/calexium_lib/web/CXM_making_a_web_site.anubis index 306b8e7..133d502 100644 --- a/calexium_lib/web/CXM_making_a_web_site.anubis +++ b/calexium_lib/web/CXM_making_a_web_site.anubis @@ -807,7 +807,8 @@ public type Table_Option: Int width_of_inner_edge, RGB border_color), width(Int), // sets a minimal width for the table - percentage_width(Int). + percentage_width(Int), + attr(String name, String value). public define Table_Option nude = border(0,0,0,rgb(0,0,0)). @@ -3664,6 +3665,7 @@ define String format(t,true), 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), } }. -- libgit2 0.21.4