Created
February 27, 2014 16:11
-
-
Save evancz/9253197 to your computer and use it in GitHub Desktop.
A bunch of synced check boxes
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
import Graphics.Input as Input | |
main : Signal Element | |
main = lift display check.signal | |
check : Input.Input Bool | |
check = Input.input True | |
display : Bool -> Element | |
display checked = | |
let box = container 30 30 middle (Input.checkbox check.handle id checked) in | |
flow right [ box, box, box ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment