mirror of
https://github.com/Orasund/elm-ui-widgets.git
synced 2024-11-22 04:58:49 +03:00
Refactor ProgressIndicatorStyle record from icon to containerFunction
This commit is contained in:
parent
b1d75d259b
commit
d0178f37f6
@ -286,7 +286,7 @@ sortTable =
|
||||
|
||||
progressIndicatorStyle : ProgressIndicatorStyle msg
|
||||
progressIndicatorStyle =
|
||||
{ icon =
|
||||
{ containerFunction =
|
||||
\maybeProgress ->
|
||||
case maybeProgress of
|
||||
Nothing ->
|
||||
|
@ -9,4 +9,4 @@ circularProgressIndicator :
|
||||
-> Maybe Float
|
||||
-> Element msg
|
||||
circularProgressIndicator style maybeProgress =
|
||||
style.icon maybeProgress
|
||||
style.containerFunction maybeProgress
|
||||
|
@ -136,5 +136,5 @@ type alias LayoutStyle msg =
|
||||
|
||||
{-| -}
|
||||
type alias ProgressIndicatorStyle msg =
|
||||
{ icon : Maybe Float -> Element msg
|
||||
{ containerFunction : Maybe Float -> Element msg
|
||||
}
|
||||
|
@ -1313,7 +1313,7 @@ determinateCircularIcon color attribs progress =
|
||||
|
||||
progressIndicator : Palette -> ProgressIndicatorStyle msg
|
||||
progressIndicator palette =
|
||||
{ icon =
|
||||
{ containerFunction =
|
||||
\maybeProgress ->
|
||||
case maybeProgress of
|
||||
Nothing ->
|
||||
|
@ -352,7 +352,7 @@ progressIndicator string =
|
||||
-}
|
||||
progressIndicator : String -> ProgressIndicatorStyle msg
|
||||
progressIndicator string =
|
||||
{ icon = (\_ -> icon <| string ++ ":icon")
|
||||
{ containerFunction = (\_ -> icon <| string ++ ":icon")
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user