@@ -857,7 +857,7 @@ viewHeaderButtons { refresh, csvExport } =
857857
858858 ( NoRefreshButton , csvOptions ) ->
859859 [ div [ style " margin-left" " auto" , style " margin-right" " 0" ]
860- [ div [] [ viewCsvExportButtonOption csvOptions ]
860+ [ div [] [ viewCsvExportButton csvOptions ]
861861 ]
862862 ]
863863
@@ -867,7 +867,7 @@ viewHeaderButtons { refresh, csvExport } =
867867 ( refreshOptions, csvOptions ) ->
868868 [ div [ style " margin-left" " auto" , style " display" " flex" ]
869869 [ div [ style " margin-right" " .5rem" ]
870- [ div [] [ viewCsvExportButtonOption csvOptions ] ]
870+ [ div [] [ viewCsvExportButton csvOptions ] ]
871871 , viewRefreshButton refreshOptions
872872 ]
873873 ]
@@ -884,9 +884,11 @@ viewRefreshButton option =
884884 [ i [ class " fa fa-refresh" ] [] ]
885885
886886
887- viewCsvExportButtonOption : CsvExportOptions row msg -> Html (Msg msg )
888- viewCsvExportButtonOption option =
889- case option of
887+ {- | View for the CSV export button in case the button should be displayed outside of the table
888+ -}
889+ viewCsvExportButton : CsvExportOptions row msg -> Html (Msg msg )
890+ viewCsvExportButton options =
891+ case options of
890892 NoCsvExportButton ->
891893 text " "
892894
@@ -908,13 +910,6 @@ viewCsvExportButtonOption option =
908910 ]
909911
910912
911- {- | View for the CSV export button in case the button should be displayed outside of the table
912- -}
913- viewCsvExportButton : Model row msg -> Html (Msg msg )
914- viewCsvExportButton ( Model model) =
915- viewCsvExportButtonOption model. options. csvExport
916-
917-
918913tableHeader : NonEmptyList .Nonempty (Column row msg ) -> Sort a -> (ColumnName -> List (Attribute msg )) -> Html (Msg msg )
919914tableHeader columns sort thAttrsFun =
920915 tr [ class " head" ]
0 commit comments