Skip to content

Commit 62ce205

Browse files
committed
(doc-update) added a main to the tableStriped_ example
1 parent 18a65b0 commit 62ce205

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

src/Bootstrap/Html.elm

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -353,29 +353,34 @@ colLg_ xs sm md lg = div' {class = "col-xs-" ++ toString xs ++ " col-sm-" ++ toS
353353
tableStriped' : ClassString -> List Html -> Html
354354
tableStriped' c = table' {class = "table table-striped " ++ c}
355355
{-|
356-
import Html
356+
import Html exposing (..)
357357
import Html.Shorthand exposing (..)
358-
359-
tableStriped_
360-
[ thead_
361-
[ th' {class = "text-left"} [ text "Item #" ]
362-
, th' {class = "text-left"} [ text "Long Description" ]
363-
, th' {class = "text-right"} [ text "Units" ]
364-
, th' {class = "text-right"} [ text "Price" ]
365-
]
366-
, tr_
367-
[ td_ [ text "X" ]
368-
, td_ [ text "This is an X"]
369-
, td_ [ text "55"]
370-
, td_ [ text "$ 100"]
371-
]
372-
, tr_
373-
[ td_ [ text "Y" ]
374-
, td_ [ text "This is an Y"]
375-
, td_ [ text "3"]
376-
, td_ [ text "$ 10"]
358+
import Bootstrap.Html exposing (..)
359+
360+
view : Html
361+
view = tableStriped_
362+
[ thead_
363+
[ th' {class = "text-left"} [ text "Item #" ]
364+
, th' {class = "text-left"} [ text "Long Description" ]
365+
, th' {class = "text-right"} [ text "Units" ]
366+
, th' {class = "text-right"} [ text "Price" ]
367+
]
368+
, tr_
369+
[ td_ [ text "X" ]
370+
, td_ [ text "This is an X"]
371+
, td_ [ text "55"]
372+
, td_ [ text "$ 100"]
373+
]
374+
, tr_
375+
[ td_ [ text "Y" ]
376+
, td_ [ text "This is an Y"]
377+
, td_ [ text "3"]
378+
, td_ [ text "$ 10"]
379+
]
377380
]
378-
]
381+
382+
main : Html
383+
main = view
379384
-}
380385
tableStriped_ : List Html -> Html
381386
tableStriped_ = tableBodyStriped' ""

0 commit comments

Comments
 (0)