mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-24 22:21:45 +03:00
Updated docs
This commit is contained in:
parent
5111241b3d
commit
e9562b956b
@ -4,20 +4,11 @@ module Nri.Ui.Table.V5 exposing
|
||||
, viewLoading, viewLoadingWithoutHeader
|
||||
)
|
||||
|
||||
{-| Upgrading from V1:
|
||||
{-| Upgrading from V5:
|
||||
|
||||
- All the `width` fields in column configurations now take an elm-css length
|
||||
value rather than an Integer. Change `width = 100` to `width = px 100` to get
|
||||
the same widths as before.
|
||||
- Tables now by default take the full width of the container they are placed in.
|
||||
If this is not what you want, wrap the table in an element with a fixed width.
|
||||
- The table module now makes use of `Html.Styled` and no longer exposes a
|
||||
separate `styles` value.
|
||||
Check out the [elm-css](http://package.elm-lang.org/packages/rtfeldman/elm-css/14.0.0/Html-Styled)
|
||||
documentation on Html.Styled to see how to work with it.
|
||||
- The default cell padding has been removed and content is not vertically
|
||||
centered in its cell. If you need to overwrite this, wrap your cells in
|
||||
elements providing custom styling to the cell.
|
||||
- The columns take an additional `cellStyles` property that allow
|
||||
you to specify additional styles such as cell background color
|
||||
or text alignment.
|
||||
|
||||
@docs Column, custom, string
|
||||
|
||||
|
@ -26,7 +26,7 @@ type alias State =
|
||||
{-| -}
|
||||
example : (Msg -> msg) -> State -> ModuleExample msg
|
||||
example parentMessage state =
|
||||
{ name = "Nri.Ui.Table.V4"
|
||||
{ name = "Nri.Ui.Table.V5"
|
||||
, category = Tables
|
||||
, content =
|
||||
let
|
||||
|
Loading…
Reference in New Issue
Block a user