Module

Pha.Html

Package
purescript-pha
Repository
gbagan/purescript-pha

Re-exports from Pha.Html.Core

#Prop Source

data Prop :: Type -> Type

#Html Source

data Html :: Type -> Type

Instances

#EventHandler Source

type EventHandler msg = Event -> Effect (Maybe msg)

#Event Source

data Event :: Type

Basic type for all DOM events.

#when Source

when :: forall msg. Boolean -> (Unit -> Html msg) -> Html msg
when true f = f unit
when false f = empty

#text Source

text :: forall msg. String -> Html msg

#style Source

style :: forall msg. String -> String -> Prop msg

#on_ Source

on_ :: forall msg. String -> (Event -> Maybe msg) -> Prop msg

#maybe Source

maybe :: forall a msg. Maybe a -> (a -> Html msg) -> Html msg

#lazy3 Source

lazy3 :: forall a b c msg. (a -> b -> c -> Html msg) -> a -> b -> c -> Html msg

#lazy2 Source

lazy2 :: forall a b msg. (a -> b -> Html msg) -> a -> b -> Html msg

#lazy Source

lazy :: forall a msg. (a -> Html msg) -> a -> Html msg

#keyed Source

keyed :: forall msg. String -> Array (Prop msg) -> Array (Tuple String (Html msg)) -> Html msg

#h Source

h :: forall msg. String -> Array (Prop msg) -> Array (Html msg) -> Html msg

#fromMaybe Source

fromMaybe :: forall msg. Maybe (Html msg) -> Html msg
maybeN (Just html) = html
maybeN Nothing = empty

#empty Source

empty :: forall msg. Html msg

#class_ Source

class_ :: forall msg. String -> Prop msg

#class' Source

class' :: forall msg. String -> Boolean -> Prop msg

#attr Source

attr :: forall msg. String -> String -> Prop msg

Re-exports from Pha.Html.Elements

#use Source

use :: forall msg. Array (Prop msg) -> Html msg

#ul Source

ul :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#text_ Source

text_ :: forall msg. String -> Array (Prop msg) -> Html msg

#svg Source

svg :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#span Source

span :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#section Source

section :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#rect Source

rect :: forall msg. Array (Prop msg) -> Html msg

#path Source

path :: forall msg. Array (Prop msg) -> Html msg

#p Source

p :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#ol Source

ol :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#nav Source

nav :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#main Source

main :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#line Source

line :: forall msg. Array (Prop msg) -> Html msg

#li Source

li :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#label Source

label :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#input Source

input :: forall msg. Array (Prop msg) -> Html msg

#img Source

img :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#hr Source

hr :: forall msg. Array (Prop msg) -> Html msg

#header Source

header :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#h6 Source

h6 :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#h5 Source

h5 :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#h4 Source

h4 :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#h3 Source

h3 :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#h2 Source

h2 :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#h1 Source

h1 :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#g Source

g :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#form Source

form :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#footer Source

footer :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#div Source

div :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#circle Source

circle :: forall msg. Array (Prop msg) -> Html msg

#button Source

button :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg

#br Source

br :: forall msg. Html msg

#a Source

a :: forall msg. Array (Prop msg) -> Array (Html msg) -> Html msg