comparison demo/more/grid.ur @ 1342:78fe9841c39d

Small tweaks to update demos for record unification change
author Adam Chlipala <adam@chlipala.net>
date Wed, 15 Dec 2010 09:42:35 -0500
parents f0afe61a6f8b
children 68429cfce8db
comparison
equal deleted inserted replaced
1341:91eaa1542c5a 1342:78fe9841c39d
123 123
124 fun render (grid : grid) = <xml> 124 fun render (grid : grid) = <xml>
125 <table class={tabl}> 125 <table class={tabl}>
126 <tr class={tr}> 126 <tr class={tr}>
127 <th/> <th/> <th><button value="No sort" onclick={set grid.Sort None}/></th> 127 <th/> <th/> <th><button value="No sort" onclick={set grid.Sort None}/></th>
128 {@mapX2 [fst3] [colMeta M.row] [_] 128 {@mapX2 [fst3] [colMeta M.row] [[Body, Tr]]
129 (fn [nm :: Name] [p :: (Type * Type * Type)] [rest :: {(Type * Type * Type)}] [[nm] ~ rest] 129 (fn [nm :: Name] [p :: (Type * Type * Type)] [rest :: {(Type * Type * Type)}] [[nm] ~ rest]
130 data (meta : colMeta M.row p) => 130 data (meta : colMeta M.row p) =>
131 <xml><th class={th}> 131 <xml><th class={th}>
132 {case (meta.Handlers data).Sort of 132 {case (meta.Handlers data).Sort of
133 None => txt (meta.Handlers data).Header 133 None => txt (meta.Handlers data).Header