Flare
- Package
- purescript-flare
- Repository
- sharkdp/purescript-flare
#stringPattern_ Source
stringPattern_ :: forall e. String -> String -> UI e StringLike stringPattern, but without a label.
#buttons Source
buttons :: forall e a f. Traversable f => f a -> (a -> String) -> UI e (Maybe a)Create a button for each element of the given container. The whole
component returns Nothing if none of the buttons is pressed and Just x
if the button corresponding to the element x is pressed.
#radioGroup_ Source
radioGroup_ :: forall a f e. Foldable f => NonEmpty f a -> (a -> String) -> UI e aLike radioGroup, but without a label.
#applyUIFlipped Source
applyUIFlipped :: forall e b a. UI e a -> UI e (a -> b) -> UI e bA flipped version of <*> for UI that arranges the components in the
order of appearance.
#flareWith Source
flareWith :: forall a e. ElementId -> (Signal a -> Eff (channel :: CHANNEL, dom :: DOM | e) Unit) -> UI e a -> Eff (channel :: CHANNEL, dom :: DOM | e) UnitRenders a Flare UI to the DOM and sets up all event handlers. The ID
specifies the HTML element to which the controls are attached. The
handler function argument handles the Signal inside the Flare.
#runFlareWith Source
runFlareWith :: forall a e. ElementId -> (a -> Eff (channel :: CHANNEL, dom :: DOM | e) Unit) -> UI e a -> Eff (channel :: CHANNEL, dom :: DOM | e) UnitRenders a Flare UI to the DOM and sets up all event handlers. The ID
specifies the HTML element to which the controls are attached. The
function argument will be mapped over the Signal inside the Flare.
- Modules
- Flare
- Flare.
Drawing - Flare.
Smolder