Module

SDOM.Components

Package
purescript-sdom
Repository
paf31/purescript-sdom

#textbox Source

textbox :: forall context channel. SDOM channel context String String

Render a textbox component whose model is a String.

Note: the model type can easily be changed using a lens.

#checkbox Source

checkbox :: forall context channel model. (context -> model -> String) -> (model -> Boolean) -> (model -> Boolean -> model) -> SDOM channel context model model

Render 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.