diff options
author | ivan <ivan> | 2008-05-06 01:15:46 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-05-06 01:15:46 +0000 |
commit | bb51c09147a727688b6cd49e8838b9219ff25d43 (patch) | |
tree | ec055907785107b3388f4ac307814ee5663e8807 /httemplate/elements/customer-table.html | |
parent | 5beea6929acac0c1d0270fae961b3da87f6f8cdc (diff) |
put the documentation in a proper <%doc> section
Diffstat (limited to 'httemplate/elements/customer-table.html')
-rw-r--r-- | httemplate/elements/customer-table.html | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html index fc298b03e..779b01c51 100644 --- a/httemplate/elements/customer-table.html +++ b/httemplate/elements/customer-table.html @@ -1,15 +1,23 @@ -% # options example... -% # -% # #listrefs... -% # 'header' => [ '#', 'Item' ], -% # 'fields' => [ -% # 'column', -% # sub { my ($row,$param) = @_; $param->{"column$row"}; }, -% # ], -% # 'sizes' => [], # sizes ignored for immutable -% # 'types' => ['immutable', ''], # immutable or ''/text -% # 'param' => { column0 => 1 }, # preset column of row 0 to 1 -% # +<%doc> + +Example: + + include( '/elements/customer-table.html', + + #listrefs... + 'header' => [ '#', 'Item' ], + 'fields' => [ + 'column', + sub { my ($row,$param) = @_; + $param->{"column$row"}; + }, + ], + 'sizes' => [], # sizes ignored for immutable + 'types' => ['immutable', ''], # immutable or ''/text + 'param' => { column0 => 1 }, # preset column of row 0 to 1 + ) + +</%doc> <SCRIPT TYPE="text/javascript"> |