Module

Jelly.Prop

Package
purescript-jelly
Repository
yukikurage/purescript-jelly

#Prop Source

data Prop :: (Type -> Type) -> Typedata Prop m

Prop represents one property of a DOM element.

Constructors

#hoistProp Source

hoistProp :: forall m n. (m ~> n) -> Prop m -> Prop n

#attr Source

attr :: forall m a. AttrValue a => String -> a -> Prop m

Create a property

#(:=) Source

Operator alias for Jelly.Prop.attr (non-associative / precedence 0)

#attrSig Source

attrSig :: forall m a. AttrValue a => String -> Signal a -> Prop m

Create a property with a Signal

#(@=) Source

Operator alias for Jelly.Prop.attrSig (non-associative / precedence 0)

#on Source

on :: forall m. EventType -> (Event -> m Unit) -> Prop m

Set an event handler for the given event type.

#onMount Source

onMount :: forall m. (Element -> m Unit) -> Prop m

Set an effect to run when the element is mounted.

#renderProp Source

renderProp :: forall m. Prop m -> Signal String

Render a prop

#renderProps Source

renderProps :: forall m. Array (Prop m) -> Signal String

Render a list of props