mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-18 03:01:41 +03:00
Adds table example
This commit is contained in:
parent
a5743b0639
commit
b684abf57c
@ -37,7 +37,29 @@ example =
|
|||||||
, subscriptions = \_ -> Sub.none
|
, subscriptions = \_ -> Sub.none
|
||||||
, categories = [ Tables, Layout ]
|
, categories = [ Tables, Layout ]
|
||||||
, keyboardSupport = []
|
, keyboardSupport = []
|
||||||
, preview = []
|
, preview =
|
||||||
|
[ Table.view
|
||||||
|
[ Table.string
|
||||||
|
{ header = "A"
|
||||||
|
, value = .a
|
||||||
|
, width = px 50
|
||||||
|
, cellStyles = always []
|
||||||
|
}
|
||||||
|
, Table.string
|
||||||
|
{ header = "B"
|
||||||
|
, value = .b
|
||||||
|
, width = px 50
|
||||||
|
, cellStyles = always []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
[ { a = "Row 1 A"
|
||||||
|
, b = "Row 1 B"
|
||||||
|
}
|
||||||
|
, { a = "Row 2 A"
|
||||||
|
, b = "Row 2 B"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
, view =
|
, view =
|
||||||
\() ->
|
\() ->
|
||||||
let
|
let
|
||||||
|
Loading…
Reference in New Issue
Block a user