Skip to content

Commit

Permalink
added p and m back to UiBoundCmdParam sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyson Williams committed Oct 8, 2019
1 parent 5593c35 commit cfd9f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Samples/UiBoundCmdParam/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let bindings () : Binding<Model, Msg> list = [
"Numbers" |> Binding.oneWay(fun m -> m.Numbers)
"Limit" |> Binding.twoWay((fun m -> float m.EnabledMaxLimit), int >> SetLimit)
"Command" |> Binding.cmdParamIf(
(fun _ _ -> Command),
(fun p m -> Command),
(fun p m -> not (isNull p) && p :?> int <= m.EnabledMaxLimit),
true)
]
Expand Down

0 comments on commit cfd9f58

Please sign in to comment.