Update Elm Maybe map.
This commit is contained in:
parent
203f5309b2
commit
efa9896008
@ -36,6 +36,8 @@ let
|
|||||||
|
|
||||||
tooltipAttribute =
|
tooltipAttribute =
|
||||||
Maybe.map (\tooltip -> [ HA.title tooltip ]) settings.tooltip |> Maybe.withDefault []
|
Maybe.map (\tooltip -> [ HA.title tooltip ]) settings.tooltip |> Maybe.withDefault []
|
||||||
|
-- or you can do:
|
||||||
|
settings.tooltip |> Maybe.map (\tooltip -> [ HA.title tooltip ]) |> Maybe.withDefault []
|
||||||
|
|
||||||
in
|
in
|
||||||
H.div
|
H.div
|
||||||
|
|||||||
@ -36,6 +36,8 @@ let
|
|||||||
|
|
||||||
tooltipAttribute =
|
tooltipAttribute =
|
||||||
Maybe.map (\tooltip -> [ HA.title tooltip ]) settings.tooltip |> Maybe.withDefault []
|
Maybe.map (\tooltip -> [ HA.title tooltip ]) settings.tooltip |> Maybe.withDefault []
|
||||||
|
-- dit kan ook:
|
||||||
|
settings.tooltip |> Maybe.map (\tooltip -> [ HA.title tooltip ]) |> Maybe.withDefault []
|
||||||
|
|
||||||
in
|
in
|
||||||
H.div
|
H.div
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user