Commit b49a81448a5a8e11baba1e9cd46a310b2b9b4dc6
1 parent
089088a0
DataGrid added
Showing
2 changed files
with
9 additions
and
5 deletions
Show diff stats
calexium_lib/web/CXM_dojo.anubis
| @@ -193,10 +193,12 @@ public define HTML_Off_Form | @@ -193,10 +193,12 @@ public define HTML_Off_Form | ||
| 193 | dojo_grid | 193 | dojo_grid |
| 194 | ( | 194 | ( |
| 195 | HtmlId html_id, | 195 | HtmlId html_id, |
| 196 | - List(CoreAttrs) attributes, | ||
| 197 | - ) | ||
| 198 | - = | ||
| 199 | - div_empty([id(html_id.id), attr("dojoType", "dojox.Grid") . attributes ]). | 196 | + Int rowsPerPage, |
| 197 | + List(Table_Option) attributes, | ||
| 198 | + )= | ||
| 199 | + table([attr("dojoType", "dojox.grid.DataGrid"), attr("id", html_id.id), attr("jsId", html_id.id), | ||
| 200 | + attr("class", "soria"), attr("singleClickEdit", "true"), attr("rowsPerPage", to_decimal(rowsPerPage)) . attributes], | ||
| 201 | + empty, [], empty). | ||
| 200 | 202 | ||
| 201 | 203 | ||
| 202 | public define HTML_Off_Form | 204 | public define HTML_Off_Form |
calexium_lib/web/CXM_making_a_web_site.anubis
| @@ -807,7 +807,8 @@ public type Table_Option: | @@ -807,7 +807,8 @@ public type Table_Option: | ||
| 807 | Int width_of_inner_edge, | 807 | Int width_of_inner_edge, |
| 808 | RGB border_color), | 808 | RGB border_color), |
| 809 | width(Int), // sets a minimal width for the table | 809 | width(Int), // sets a minimal width for the table |
| 810 | - percentage_width(Int). | 810 | + percentage_width(Int), |
| 811 | + attr(String name, String value). | ||
| 811 | 812 | ||
| 812 | 813 | ||
| 813 | public define Table_Option nude = border(0,0,0,rgb(0,0,0)). | 814 | public define Table_Option nude = border(0,0,0,rgb(0,0,0)). |
| @@ -3664,6 +3665,7 @@ define String | @@ -3664,6 +3665,7 @@ define String | ||
| 3664 | format(t,true), | 3665 | format(t,true), |
| 3665 | width(w) then " width=\""+w+"\""+format(t,border_seen), | 3666 | width(w) then " width=\""+w+"\""+format(t,border_seen), |
| 3666 | percentage_width(p) then " width=\""+percent(p)+"%\""+format(t,border_seen), | 3667 | percentage_width(p) then " width=\""+percent(p)+"%\""+format(t,border_seen), |
| 3668 | + attr(name, value) then " " + name + "=\"" + value + "\"" +format(t,border_seen), | ||
| 3667 | } | 3669 | } |
| 3668 | }. | 3670 | }. |
| 3669 | 3671 |