mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-29 00:21:42 +03:00
elm-format
This commit is contained in:
parent
8f344774c3
commit
72a4a1c5e6
@ -67,21 +67,21 @@ example parentMessage state =
|
||||
, { firstName = "First5", lastName = "Last5" }
|
||||
]
|
||||
in
|
||||
[ Html.Styled.toUnstyled Table.keyframeStyles
|
||||
, Html.h4 [] [ Html.text "With header" ]
|
||||
, Table.view columns data
|
||||
|> Html.Styled.toUnstyled
|
||||
, Html.h4 [] [ Html.text "Without header" ]
|
||||
, Table.viewWithoutHeader columns data
|
||||
|> Html.Styled.toUnstyled
|
||||
, Html.h4 [] [ Html.text "Loading" ]
|
||||
, Table.viewLoading columns
|
||||
|> Html.Styled.toUnstyled
|
||||
, Html.h4 [] [ Html.text "Loading without header" ]
|
||||
, Table.viewLoadingWithoutHeader columns
|
||||
|> Html.Styled.toUnstyled
|
||||
]
|
||||
|> List.map (Html.map parentMessage)
|
||||
[ Html.Styled.toUnstyled Table.keyframeStyles
|
||||
, Html.h4 [] [ Html.text "With header" ]
|
||||
, Table.view columns data
|
||||
|> Html.Styled.toUnstyled
|
||||
, Html.h4 [] [ Html.text "Without header" ]
|
||||
, Table.viewWithoutHeader columns data
|
||||
|> Html.Styled.toUnstyled
|
||||
, Html.h4 [] [ Html.text "Loading" ]
|
||||
, Table.viewLoading columns
|
||||
|> Html.Styled.toUnstyled
|
||||
, Html.h4 [] [ Html.text "Loading without header" ]
|
||||
, Table.viewLoadingWithoutHeader columns
|
||||
|> Html.Styled.toUnstyled
|
||||
]
|
||||
|> List.map (Html.map parentMessage)
|
||||
}
|
||||
|
||||
|
||||
|
@ -63,52 +63,52 @@ update msg moduleStates =
|
||||
( dropdownState, cmd ) =
|
||||
Examples.Dropdown.update msg moduleStates.dropdownState
|
||||
in
|
||||
( { moduleStates | dropdownState = dropdownState }
|
||||
, Cmd.map DropdownMsg cmd
|
||||
)
|
||||
( { moduleStates | dropdownState = dropdownState }
|
||||
, Cmd.map DropdownMsg cmd
|
||||
)
|
||||
|
||||
SegmentedControlMsg msg ->
|
||||
let
|
||||
( segmentedControlState, cmd ) =
|
||||
Examples.SegmentedControl.update msg moduleStates.segmentedControlState
|
||||
in
|
||||
( { moduleStates | segmentedControlState = segmentedControlState }
|
||||
, Cmd.map SegmentedControlMsg cmd
|
||||
)
|
||||
( { moduleStates | segmentedControlState = segmentedControlState }
|
||||
, Cmd.map SegmentedControlMsg cmd
|
||||
)
|
||||
|
||||
SelectMsg msg ->
|
||||
let
|
||||
( selectState, cmd ) =
|
||||
Examples.Select.update msg moduleStates.selectState
|
||||
in
|
||||
( { moduleStates | selectState = selectState }
|
||||
, Cmd.map SelectMsg cmd
|
||||
)
|
||||
( { moduleStates | selectState = selectState }
|
||||
, Cmd.map SelectMsg cmd
|
||||
)
|
||||
|
||||
ShowItWorked group message ->
|
||||
let
|
||||
_ =
|
||||
Debug.log group message
|
||||
in
|
||||
( moduleStates, Cmd.none )
|
||||
( moduleStates, Cmd.none )
|
||||
|
||||
TableExampleMsg msg ->
|
||||
let
|
||||
( tableExampleState, cmd ) =
|
||||
Examples.Table.update msg moduleStates.tableExampleState
|
||||
in
|
||||
( { moduleStates | tableExampleState = tableExampleState }
|
||||
, Cmd.map TableExampleMsg cmd
|
||||
)
|
||||
( { moduleStates | tableExampleState = tableExampleState }
|
||||
, Cmd.map TableExampleMsg cmd
|
||||
)
|
||||
|
||||
TextAreaExampleMsg msg ->
|
||||
let
|
||||
( textAreaExampleState, cmd ) =
|
||||
TextAreaExample.update msg moduleStates.textAreaExampleState
|
||||
in
|
||||
( { moduleStates | textAreaExampleState = textAreaExampleState }
|
||||
, Cmd.map TextAreaExampleMsg cmd
|
||||
)
|
||||
( { moduleStates | textAreaExampleState = textAreaExampleState }
|
||||
, Cmd.map TextAreaExampleMsg cmd
|
||||
)
|
||||
|
||||
NoOp ->
|
||||
( moduleStates, Cmd.none )
|
||||
|
Loading…
Reference in New Issue
Block a user