Module

Spork.Html.Core

Package
purescript-spork
Repository
natefaubion/purescript-spork

#Html Source

newtype Html i

Instances

#IProp Source

newtype IProp (r :: Row Type) i

Constructors

Instances

#text Source

text :: forall i. String -> Html i

#elem Source

elem :: forall i r. String -> Array (IProp r i) -> Array (Html i) -> Html i

#elemWithNS Source

elemWithNS :: forall i r. Maybe Namespace -> String -> Array (IProp r i) -> Array (Html i) -> Html i

#keyed Source

keyed :: forall i r. String -> Array (IProp r i) -> Array (Tuple String (Html i)) -> Html i

#keyedWithNS Source

keyedWithNS :: forall i r. Maybe Namespace -> String -> Array (IProp r i) -> Array (Tuple String (Html i)) -> Html i

#prop Source

prop :: forall a i r. ToPropValue a => String -> a -> IProp r i

#attr Source

attr :: forall i r. String -> String -> IProp r i

#on Source

on :: forall i r. String -> (Event -> Maybe i) -> IProp r i

#ref Source

ref :: forall i r. (ElemRef Element -> Maybe i) -> IProp r i

#lazy Source

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

Lazily renders a subtree given the same render function and argument.

#lazy2 Source

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

Like lazy, but allows two arguments.

#lazy3 Source

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

Like lazy, but allows three arguments.

#memoized Source

memoized :: forall i a. (a -> a -> Boolean) -> (a -> Html i) -> a -> Html i

Creates a render function which will lazily render it's subtree according to the given equality predicate. Arguments determined to be equal will not be re-rendered. The usage of this function is slightly Different than lazy in that you must apply it at the top-level of module.

#empty Source

empty :: forall i. Html i

#when Source

when :: forall i. Boolean -> (Unit -> Html i) -> Html i

Re-exports from Halogen.VDom.DOM.Prop

#ElemRef

data ElemRef a

Constructors

  • Created a
  • Removed a

Instances

  • Functor ElemRef

Re-exports from Halogen.VDom.Types

#Namespace

newtype Namespace

Constructors

  • Namespace String

Instances

  • Newtype Namespace _
  • Eq Namespace
  • Ord Namespace
  • Generic Namespace