Last active
August 17, 2016 09:16
-
-
Save forki/3152044dbec9d36cb43594759f11f758 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div [] | |
[for i in 0 .. model.Length-1 -> | |
div | |
[] | |
[ for j in 0 .. model.Length-1 -> | |
input | |
[ maxlength 1 | |
property "value" | |
(match model.[i].[j] with | |
| 0 -> unbox "" | |
| v -> unbox (v.ToString())) | |
onInput (fun x -> ChangeBox ((i,j), int (unbox x))) | |
] | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment