Module

Impulse.DOM

Package
purescript-impulse
Repository
mitchdzugan/purescript-impulse

Re-exports from Impulse.DOM.API

#ImpulseStash Source

#ImpulseSSR Source

data ImpulseSSR :: Type -> Type

#ImpulseAttachment Source

#DOMClass Source

data DOMClass :: Type -> Type -> Type

#DOM Source

type DOM e c a = Reader (DOMClass e c) a

#Collector Source

data Collector :: Type -> Type

#withAlteredEnv Source

withAlteredEnv :: forall a c e2 e1. (e1 -> e2) -> DOM e2 c a -> DOM e1 c a

#toMarkup Source

toMarkup :: forall a e. e -> DOM e (Record ()) a -> Effect (ImpulseSSR a)

#text Source

text :: forall c e. String -> DOM e c Unit

#stashRes Source

stashRes :: forall a. ImpulseStash a -> a

#ssr_then Source

ssr_then :: forall a. ImpulseSSR a -> (String -> a -> Effect Unit) -> Effect Unit

#s_use Source

s_use :: forall a c e. (SigBuilder a) -> DOM e c (Signal a)

#s_bindDOM_ Source

s_bindDOM_ :: forall b a e r. Signal a -> (a -> DOM r e b) -> DOM r e Unit

#s_bindDOM Source

s_bindDOM :: forall b a c e. Signal a -> (a -> DOM e c b) -> DOM e c (Signal b)

#keyed Source

keyed :: forall a c e. String -> DOM e c a -> DOM e c a

#env Source

env :: forall c e. DOM e c e

#e_emit Source

e_emit :: forall l c2 c1 a e. IsSymbol l => Cons l (Collector a) c1 c2 => SProxy l -> Event a -> DOM e (Record c2) Unit

#e_collect Source

e_collect :: forall cOSymless cO cSym cI e sym a res. IsSymbol sym => Lacks sym () => Cons sym (Collector a) () cSym => Cons sym (Collector a) cOSymless cO => Union cSym cI cO => SProxy sym -> (Event a -> DOM e (Record cO) res) -> DOM e (Record cI) res

#dnil Source

dnil :: forall c e. DOM e c Unit

#detach Source

#d_stash Source

d_stash :: forall a c e. DOM e c a -> DOM e c (ImpulseStash a)

d_stash inner

runs inner but does not render in place, instead stashes whatever was rendered such that it can be used later using d_apply. stashes are immutable and can be passed around as far as you like.

   test :: forall e c. DOM e c Unit
   test = do
     ul_ anil do
       stash <- d_stash do
         li_ anil $ text "out"
         li_ anil $ text "of"
         li_ anil $ text "order?"
       li_ anil $ text "You"
       li_ anil $ text "thought"
       li_ anil $ text "this"
       li_ anil $ text "was"
       d_apply stash

results in

  <ul>
      <li>You</li>
      <li>thought</li>
      <li>this</li>
      <li>was</li>
      <li>out</li>
      <li>of</li>
      <li>order?</li>
  </ul>

#d_memo Source

d_memo :: forall b a c e. Hashable a => a -> (a -> DOM e c b) -> DOM e c b

#d_apply_ Source

d_apply_ :: forall a c e. ImpulseStash a -> DOM e c Unit

#d_apply Source

d_apply :: forall a c e. ImpulseStash a -> DOM e c a

#createElement_ Source

createElement_ :: forall a e r. String -> Attrs -> DOM r e a -> DOM r e a

#createElement Source

createElement :: forall a c e. String -> Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#attachRes Source

attachRes :: forall a. ImpulseAttachment a -> a

#attach Source

attach :: forall a e. String -> e -> DOM e (Record ()) a -> Effect (ImpulseAttachment a)

#_eff Source

_eff :: forall a c e. Effect a -> DOM e c a

Re-exports from Impulse.DOM.Attrs

#DOMAttrs Source

type DOMAttrs = { className :: Maybe String, disabled :: Maybe Boolean, href :: Maybe String, id :: Maybe String, rows :: Maybe Int, selected :: Maybe Boolean, style :: Maybe String, type :: Maybe String, value :: Maybe String }

#rows Source

rows :: Int -> Attrs

#className Source

#attr_value Source

#attr_type Source

Re-exports from Impulse.DOM.ImpulseEl

#WebEvent Source

#ImpulseEl Source

data ImpulseEl :: Type -> Type

#withStopPropagation Source

withStopPropagation :: forall e. WebEventable e => Event e -> Event e

#withPreventDefault Source

withPreventDefault :: forall e. WebEventable e => Event e -> Event e

#onTransitionEnd Source

#onScroll Source

onScroll :: forall a. ImpulseEl a -> Event WebEvent

#onMouseUp Source

#onMouseOver Source

#onMouseOut Source

#onMouseMove Source

#onMouseLeave Source

#onMouseEnter Source

#onMouseDown Source

#onKeyUp Source

#onKeyPress Source

#onKeyDown Source

#onDoubleClick Source

#onClick Source

onClick :: forall a. ImpulseEl a -> Event MouseEvent

#onChange Source

onChange :: forall a. ImpulseEl a -> Event WebEvent

#elRes Source

elRes :: forall a. ImpulseEl a -> a

#d_value_e Source

d_value_e :: forall e. WebEventable e => Event e -> Event String

#d_m_value_e Source

d_m_value_e :: forall e. WebEventable e => Event e -> Event (Maybe String)

Re-exports from Impulse.DOM.Tags

#wbr_ Source

wbr_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#wbr Source

wbr :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#video_ Source

video_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#video Source

video :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#var_ Source

var_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#var Source

var :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#ul_ Source

ul_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#ul Source

ul :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#u_ Source

u_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#u Source

u :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#tr_ Source

tr_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#tr Source

tr :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#title_ Source

title_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#title Source

title :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#time_ Source

time_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#time Source

time :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#thead_ Source

thead_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#thead Source

thead :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#th_ Source

th_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#th Source

th :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#tfoot_ Source

tfoot_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#tfoot Source

tfoot :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#textarea_ Source

textarea_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#textarea Source

textarea :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#td_ Source

td_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#td Source

td :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#tbody_ Source

tbody_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#tbody Source

tbody :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#table_ Source

table_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#table Source

table :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#sup_ Source

sup_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#sup Source

sup :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#sub_ Source

sub_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#sub Source

sub :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#strong_ Source

strong_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#strong Source

strong :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#strike_ Source

strike_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#strike Source

strike :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#span_ Source

span_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#span Source

span :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#source_ Source

source_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#source Source

source :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#small_ Source

small_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#small Source

small :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#select_ Source

select_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#select Source

select :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#section_ Source

section_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#section Source

section :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#script_ Source

script_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#script Source

script :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#samp_ Source

samp_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#samp Source

samp :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#s_ Source

s_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#s Source

s :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#q_ Source

q_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#q Source

q :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#progress_ Source

progress_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#progress Source

progress :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#pre_ Source

pre_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#pre Source

pre :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#param_ Source

param_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#param Source

param :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#p_ Source

p_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#p Source

p :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#option_ Source

option_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#option Source

option :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#optgroup_ Source

optgroup_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#optgroup Source

optgroup :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#ol_ Source

ol_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#ol Source

ol :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#object_ Source

object_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#object Source

object :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#noscript_ Source

noscript_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#noscript Source

noscript :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#nav_ Source

nav_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#nav Source

nav :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#meter_ Source

meter_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#meter Source

meter :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#meta_ Source

meta_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#meta Source

meta :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#mark_ Source

mark_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#mark Source

mark :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#map_ Source

map_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#map Source

map :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#main_ Source

main_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#main Source

main :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#li_ Source

li_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#li Source

li :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#legend_ Source

legend_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#legend Source

legend :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#label_ Source

label_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#label Source

label :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#kbd_ Source

kbd_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#kbd Source

kbd :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#ins_ Source

ins_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#ins Source

ins :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#input_ Source

input_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#input Source

input :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#img_ Source

img_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#img Source

img :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#iframe_ Source

iframe_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#iframe Source

iframe :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#i_ Source

i_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#i Source

i :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#html_ Source

html_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#html Source

html :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#hr_ Source

hr_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#hr Source

hr :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#header_ Source

header_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#header Source

header :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#head_ Source

head_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#head Source

head :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#h6_ Source

h6_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#h6 Source

h6 :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#h5_ Source

h5_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#h5 Source

h5 :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#h4_ Source

h4_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#h4 Source

h4 :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#h3_ Source

h3_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#h3 Source

h3 :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#h2_ Source

h2_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#h2 Source

h2 :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#h1_ Source

h1_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#h1 Source

h1 :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#frameset_ Source

frameset_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#frameset Source

frameset :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#frame_ Source

frame_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#frame Source

frame :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#form_ Source

form_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#form Source

form :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#footer_ Source

footer_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#footer Source

footer :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#font_ Source

font_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#font Source

font :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#figure_ Source

figure_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#figure Source

figure :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#figcaption_ Source

figcaption_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#figcaption Source

figcaption :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#fieldset_ Source

fieldset_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#fieldset Source

fieldset :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#embed_ Source

embed_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#embed Source

embed :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#em_ Source

em_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#em Source

em :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#dt_ Source

dt_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#dt Source

dt :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#dl_ Source

dl_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#dl Source

dl :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#div_ Source

div_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#div Source

div :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#dfn_ Source

dfn_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#dfn Source

dfn :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#del_ Source

del_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#del Source

del :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#dd_ Source

dd_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#dd Source

dd :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#datalist_ Source

datalist_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#datalist Source

datalist :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#d_style_ Source

d_style_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#d_style Source

d_style :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#colgroup_ Source

colgroup_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#colgroup Source

colgroup :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#col_ Source

col_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#col Source

col :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#code_ Source

code_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#code Source

code :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#cite_ Source

cite_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#cite Source

cite :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#center_ Source

center_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#center Source

center :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#caption_ Source

caption_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#caption Source

caption :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#canvas_ Source

canvas_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#canvas Source

canvas :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#button_ Source

button_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#button Source

button :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#br_ Source

br_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#br Source

br :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#body_ Source

body_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#body Source

body :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#blockquote_ Source

blockquote_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#blockquote Source

blockquote :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#big_ Source

big_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#big Source

big :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#bdo_ Source

bdo_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#bdo Source

bdo :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#basefont_ Source

basefont_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#basefont Source

basefont :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#base_ Source

base_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#base Source

base :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#b_ Source

b_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#b Source

b :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#audio_ Source

audio_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#audio Source

audio :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#aside_ Source

aside_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#aside Source

aside :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#article_ Source

article_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#article Source

article :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#area_ Source

area_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#area Source

area :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#applet_ Source

applet_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#applet Source

applet :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#address_ Source

address_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#address Source

address :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#acronym_ Source

acronym_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#acronym Source

acronym :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#abbr_ Source

abbr_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#abbr Source

abbr :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

#a_ Source

a_ :: forall a c e. Attrs -> DOM e c a -> DOM e c a

#a Source

a :: forall a c e. Attrs -> DOM e c a -> DOM e c (ImpulseEl a)

Re-exports from Impulse.DOM.Util

#withEnv Source

withEnv :: forall a e r2 r1. r2 -> DOM r2 e a -> DOM r1 e a

#upsertEnv Source

upsertEnv :: forall c rOSymless rO rSym rI sym a res. IsSymbol sym => Lacks sym () => Cons sym a () rSym => Cons sym a rOSymless rO => Union rSym rI rO => SProxy sym -> a -> DOM (Record rO) c res -> DOM (Record rI) c res

upsertEnv p value inner

runs inner with value added to the environment at p

  p_test = (SProxy :: SProxy "test")

  displayFromEnv :: forall e c. DOM { test :: String | e } c Unit
  displayFromEnv = do
    test <- getEnv p_test
    div_ anil $ text test

  test :: forall e c. DOM e c Unit
  test = do
    upsertEnv p_test "Hello World!" do     --  <-- Usage here
      displayFromEnv

results in

  <div>Hello World!</div>

#s_extract_ Source

s_extract_ :: forall a c e. Signal (ImpulseStash a) -> DOM e c (ImpulseStash Unit)

#s_extract Source

s_extract :: forall a c e. Signal (ImpulseStash a) -> DOM e c (ImpulseStash (Signal a))

#s_bindKeyedDOM_ Source

s_bindKeyedDOM_ :: forall b a c e. Show a => Signal a -> (a -> DOM e c b) -> DOM e c Unit

#s_bindKeyedDOM Source

s_bindKeyedDOM :: forall b a c e. Show a => Signal a -> (a -> DOM e c b) -> DOM e c (Signal b)

#getEnv Source

getEnv :: forall l r2 r1 a c. IsSymbol l => Cons l a r1 r2 => SProxy l -> DOM (Record r2) c a

getEnv p

pulls the value at p out of the current environment

  p_test = (SProxy :: SProxy "test")

  displayFromEnv :: forall e c. DOM { test :: String | e } c Unit
  displayFromEnv = do
    test <- getEnv p_test    --  <-- Usage here
    div_ anil $ text test

  test :: forall e c. DOM e c Unit
  test = do
    upsertEnv p_test "Hello World!" do
      displayFromEnv

results in

  <div>Hello World!</div>

#e_collectAndReduce Source

e_collectAndReduce :: forall cOSymless cO cSym cI eOSymless eO eSym eI sym b a res. IsSymbol sym => Lacks sym () => Cons sym (Collector a) () cSym => Cons sym (Collector a) cOSymless cO => Union cSym cI cO => Cons sym (Signal b) () eSym => Cons sym (Signal b) eOSymless eO => Union eSym eI eO => SProxy sym -> (b -> a -> b) -> b -> DOM (Record eO) (Record cO) res -> DOM (Record eI) (Record cI) res

e_collectAndReduce p reducer init inner

Creates a signal from the supplied reducer and initial value. inner is then run with the created signal injected into the environment at p. The event used to drive the reducer is the combination of all events e_emited to p while running inner.

   p_score = (SProxy :: SProxy "score")

   scoreButton ::
     forall e c.
     Int ->
     String ->
     DOM e { score :: Collector Int | c } Unit
   scoreButton change message = do
     d_button <- button anil $ text message
     e_emit p_score $ onClick d_button <#> const change

   displayScore ::
     forall e c.
     DOM { score :: Signal Int | e } c Unit
   displayScore = do
     s_score <- getEnv p_score
     s_bindDOM_ s_score \score -> do
       span_ anil $ text $ "Score: " <> show score

   test :: forall e c. DOM e c Unit
   test = do
     e_collectAndReduce p_score (\agg change -> agg + change) 0 do
       scoreButton (-1) "Decrement Score"
       displayScore
       scoreButton (1) "Increment Score"

results in

  <button>Decrement Score</button>
  <span>Score: 0</span>
  <button>Increment Score</button>

with the score text changing as expected

#d_readAs Source

d_readAs :: forall res b a c e' e sym. IsSymbol sym => Cons sym a e' e => SProxy sym -> (a -> b) -> Reader b res -> DOM (Record e) (Record c) res

#d_read Source

d_read :: forall res a c e' e sym. IsSymbol sym => Cons sym a e' e => SProxy sym -> Reader a res -> DOM (Record e) (Record c) res

#d_clone Source

d_clone :: forall a c e. ImpulseStash a -> DOM e c (ImpulseStash a)