mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-24 00:42:29 +03:00
Adds table example
This commit is contained in:
parent
a5743b0639
commit
b684abf57c
@ -37,7 +37,29 @@ example =
|
||||
, subscriptions = \_ -> Sub.none
|
||||
, categories = [ Tables, Layout ]
|
||||
, 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 =
|
||||
\() ->
|
||||
let
|
||||
|
Loading…
Reference in New Issue
Block a user