Module
SDOM.Components
- Package
- purescript-sdom
- Repository
- paf31/purescript-sdom
#checkbox Source
checkbox :: forall context channel model. (context -> model -> String) -> (model -> Boolean) -> (model -> Boolean -> model) -> SDOM channel context model modelRender a checkbox and an accompanying label inside a span.
The first argument chooses a unique name for the input component so that it can be connected to the label.
The second and third arguments encapsulate the checked status of the
checkbox as a getter/setter pair.