Make the data consistent with its display

This commit is contained in:
Tessa Kelly 2022-03-30 14:23:56 -07:00
parent 7c57093519
commit b0435993fa

View File

@ -79,22 +79,22 @@ example =
[ Table.view [ Table.view
[ Table.custom [ Table.custom
{ header = header "X" { header = header "X"
, view = .a >> Html.text , view = .x >> Html.text
, width = px 50 , width = px 50
, cellStyles = always [] , cellStyles = always []
} }
, Table.custom , Table.custom
{ header = header "Y" { header = header "Y"
, view = .b >> Html.text , view = .y >> Html.text
, width = px 50 , width = px 50
, cellStyles = always [] , cellStyles = always []
} }
] ]
[ { a = "Row 1 X" [ { x = "Row 1 X"
, b = "Row 1 Y" , y = "Row 1 Y"
} }
, { a = "Row 2 X" , { x = "Row 2 X"
, b = "Row 2 Y" , y = "Row 2 Y"
} }
] ]
] ]