From e9562b956b52888b6cd7c63c3fb6626feefa26e1 Mon Sep 17 00:00:00 2001 From: Charlie Koster Date: Mon, 5 Aug 2019 14:38:34 -0500 Subject: [PATCH] Updated docs --- src/Nri/Ui/Table/V5.elm | 17 ++++------------- styleguide-app/Examples/Table.elm | 2 +- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/Nri/Ui/Table/V5.elm b/src/Nri/Ui/Table/V5.elm index e4a8a9c9..1929d545 100644 --- a/src/Nri/Ui/Table/V5.elm +++ b/src/Nri/Ui/Table/V5.elm @@ -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 diff --git a/styleguide-app/Examples/Table.elm b/styleguide-app/Examples/Table.elm index 7e293983..1e57651f 100644 --- a/styleguide-app/Examples/Table.elm +++ b/styleguide-app/Examples/Table.elm @@ -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