Module

Spork.Html

Re-exports from Spork.Html.Core

#Namespace

#IProp

newtype IProp (r :: Row Type) i

Constructors

Instances

#Html

newtype Html i

Instances

#ElementRef

#ElemRef

data ElemRef a

Constructors

Instances

#when

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

#text

text :: forall i. String -> Html i

#ref

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

#prop

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

#on

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

#memoized

memoized :: forall a i. (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.

#lazy3

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

Like lazy, but allows three arguments.

#lazy2

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

Like lazy, but allows two arguments.

#lazy

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

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

#keyedWithNS

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

#keyed

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

#empty

empty :: forall i. Html i

#elemWithNS

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

#elem

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

#attr

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

Re-exports from Spork.Html.Elements

#wbr

wbr :: forall i. Leaf HTMLwbr i

#video

video :: forall i. Node HTMLvideo i

#var

var :: forall i. Node HTMLvar i

#ul

ul :: forall i. Node HTMLul i

#u

u :: forall i. Node HTMLu i

#track

track :: forall i. Leaf HTMLtrack i

#tr

tr :: forall i. Node HTMLtr i

#time

time :: forall i. Node HTMLtime i

#thead

thead :: forall i. Node HTMLthead i

#th

th :: forall i. Node HTMLth i

#tfoot

tfoot :: forall i. Node HTMLtfoot i

#textarea

textarea :: forall i. Leaf HTMLtextarea i

#td

td :: forall i. Node HTMLtd i

#tbody

tbody :: forall i. Node HTMLtbody i

#table

table :: forall i. Node HTMLtable i

#sup

sup :: forall i. Node HTMLsup i

#summary

summary :: forall i. Node HTMLsummary i

#sub

sub :: forall i. Node HTMLsub i

#strong

strong :: forall i. Node HTMLstrong i

#span

span :: forall i. Node HTMLspan i

#source

source :: forall i. Leaf HTMLsource i

#small

small :: forall i. Node HTMLsmall i

#select

select :: forall i. Node HTMLselect i

#section

section :: forall i. Node HTMLsection i

#script

script :: forall i. Node HTMLscript i

#samp

samp :: forall i. Node HTMLsamp i

#ruby

ruby :: forall i. Node HTMLruby i

#rt

rt :: forall i. Node HTMLrt i

#rp

rp :: forall i. Node HTMLrp i

#q

q :: forall i. Node HTMLq i

#progress

progress :: forall i. Node HTMLprogress i

#pre

pre :: forall i. Node HTMLpre i

#param

param :: forall i. Leaf HTMLparam i

#p

p :: forall i. Node HTMLp i

#output

output :: forall i. Node HTMLoutput i

#option

option :: forall i. Node HTMLoption i

#optgroup

optgroup :: forall i. Node HTMLoptgroup i

#ol

ol :: forall i. Node HTMLol i

#object

object :: forall i. Node HTMLobject i

#noscript

noscript :: forall i. Node HTMLnoscript i

#nav

nav :: forall i. Node HTMLnav i

#meter

meter :: forall i. Node HTMLmeter i

#meta

meta :: forall i. Leaf HTMLmeta i

#menuitem

menuitem :: forall i. Node HTMLmenuitem i

#menu

menu :: forall i. Node HTMLmenu i

#mark

mark :: forall i. Node HTMLmark i

#map

map :: forall i. Node HTMLmap i

#main

main :: forall i. Node HTMLmain i

#li

li :: forall i. Node HTMLli i

#label

label :: forall i. Node HTMLlabel i

#kbd

kbd :: forall i. Node HTMLkbd i

#ins

ins :: forall i. Node HTMLins i

#input

input :: forall i. Leaf HTMLinput i

#img

img :: forall i. Leaf HTMLimg i

#iframe

iframe :: forall i. Leaf HTMLiframe i

#i

i :: forall i. Node HTMLi i

#html

html :: forall i. Node HTMLhtml i

#hr

hr :: forall i. Leaf HTMLhr i

#header

header :: forall i. Node HTMLheader i

#head

head :: forall i. Node HTMLhead i

#h6

h6 :: forall i. Node HTMLh6 i

#h5

h5 :: forall i. Node HTMLh5 i

#h4

h4 :: forall i. Node HTMLh4 i

#h3

h3 :: forall i. Node HTMLh3 i

#h2

h2 :: forall i. Node HTMLh2 i

#h1

h1 :: forall i. Node HTMLh1 i

#form

form :: forall i. Node HTMLform i

#footer

footer :: forall i. Node HTMLfooter i

#figure

figure :: forall i. Node HTMLfigure i

#figcaption

#fieldset

fieldset :: forall i. Node HTMLfieldset i

#embed

embed :: forall i. Node HTMLembed i

#em

em :: forall i. Node HTMLem i

#dt

dt :: forall i. Node HTMLdt i

#dl

dl :: forall i. Node HTMLdl i

#div

div :: forall i. Node HTMLdiv i

#dialog

dialog :: forall i. Node HTMLdialog i

#dfn

dfn :: forall i. Node HTMLdfn i

#details

details :: forall i. Node HTMLdetails i

#del

del :: forall i. Node HTMLdel i

#dd

dd :: forall i. Node HTMLdd i

#datalist

datalist :: forall i. Node HTMLdatalist i

#command

command :: forall i. Leaf HTMLcommand i

#colgroup

colgroup :: forall i. Node HTMLcolgroup i

#col

col :: forall i. Leaf HTMLcol i

#code

code :: forall i. Node HTMLcode i

#cite

cite :: forall i. Node HTMLcite i

#caption

caption :: forall i. Node HTMLcaption i

#canvas

canvas :: forall i. Leaf HTMLcanvas i

#button

button :: forall i. Node HTMLbutton i

#br

br :: forall i. Leaf HTMLbr i

#body

body :: forall i. Node HTMLbody i

#blockquote

#bdo

bdo :: forall i. Node HTMLbdo i

#bdi

bdi :: forall i. Node HTMLbdi i

#base

base :: forall i. Leaf HTMLbase i

#b

b :: forall i. Node HTMLb i

#audio

audio :: forall i. Node HTMLaudio i

#aside

aside :: forall i. Node HTMLaside i

#article

article :: forall i. Node HTMLarticle i

#area

area :: forall i. Leaf HTMLarea i

#address

address :: forall i. Node HTMLaddress i

#abbr

abbr :: forall i. Node HTMLabbr i

#a

a :: forall i. Node HTMLa i

Re-exports from Spork.Html.Events

#onValueInput

onValueInput :: forall r i. (String -> Maybe i) -> IProp (onInput :: Event, value :: String | r) i

#onValueChange

onValueChange :: forall r i. (String -> Maybe i) -> IProp (onChange :: Event, value :: String | r) i

#onTransitionEnd

onTransitionEnd :: forall r i. (Event -> Maybe i) -> IProp (onTransitionEnd :: Event | r) i

#onSubmit

onSubmit :: forall r i. (Event -> Maybe i) -> IProp (onSubmit :: Event | r) i

#onSelectedIndexChange

onSelectedIndexChange :: forall r i. (Int -> Maybe i) -> IProp (onChange :: Event, selectedIndex :: Int | r) i

#onSelect

onSelect :: forall r i. (Event -> Maybe i) -> IProp (onSelect :: Event | r) i

#onScroll

onScroll :: forall r i. (Event -> Maybe i) -> IProp (onScroll :: Event | r) i

#onReset

onReset :: forall r i. (Event -> Maybe i) -> IProp (onReset :: Event | r) i

#onMouseUp

onMouseUp :: forall r i. (MouseEvent -> Maybe i) -> IProp (onMouseUp :: MouseEvent | r) i

#onMouseOver

onMouseOver :: forall r i. (MouseEvent -> Maybe i) -> IProp (onMouseOver :: MouseEvent | r) i

#onMouseOut

onMouseOut :: forall r i. (MouseEvent -> Maybe i) -> IProp (onMouseOut :: MouseEvent | r) i

#onMouseMove

onMouseMove :: forall r i. (MouseEvent -> Maybe i) -> IProp (onMouseMove :: MouseEvent | r) i

#onMouseLeave

onMouseLeave :: forall r i. (MouseEvent -> Maybe i) -> IProp (onMouseLeave :: MouseEvent | r) i

#onMouseEnter

onMouseEnter :: forall r i. (MouseEvent -> Maybe i) -> IProp (onMouseEnter :: MouseEvent | r) i

#onMouseDown

onMouseDown :: forall r i. (MouseEvent -> Maybe i) -> IProp (onMouseDown :: MouseEvent | r) i

#onLoad

onLoad :: forall r i. (Event -> Maybe i) -> IProp (onLoad :: Event | r) i

#onKeyUp

onKeyUp :: forall r i. (KeyboardEvent -> Maybe i) -> IProp (onKeyUp :: KeyboardEvent | r) i

#onKeyPress

onKeyPress :: forall r i. (KeyboardEvent -> Maybe i) -> IProp (onKeyPress :: KeyboardEvent | r) i

#onKeyDown

onKeyDown :: forall r i. (KeyboardEvent -> Maybe i) -> IProp (onKeyDown :: KeyboardEvent | r) i

#onInvalid

onInvalid :: forall r i. (Event -> Maybe i) -> IProp (onInvalid :: Event | r) i

#onInput

onInput :: forall r i. (Event -> Maybe i) -> IProp (onInput :: Event | r) i

#onFocusOut

onFocusOut :: forall r i. (FocusEvent -> Maybe i) -> IProp (onFocusOut :: FocusEvent | r) i

#onFocusIn

onFocusIn :: forall r i. (FocusEvent -> Maybe i) -> IProp (onFocusIn :: FocusEvent | r) i

#onFocus

onFocus :: forall r i. (FocusEvent -> Maybe i) -> IProp (onFocus :: FocusEvent | r) i

#onError

onError :: forall r i. (Event -> Maybe i) -> IProp (onError :: Event | r) i

#onDrop

onDrop :: forall r i. (DragEvent -> Maybe i) -> IProp (onDrop :: DragEvent | r) i

#onDragStart

onDragStart :: forall r i. (DragEvent -> Maybe i) -> IProp (onDragStart :: DragEvent | r) i

#onDragOver

onDragOver :: forall r i. (DragEvent -> Maybe i) -> IProp (onDragOver :: DragEvent | r) i

#onDragLeave

onDragLeave :: forall r i. (DragEvent -> Maybe i) -> IProp (onDragLeave :: DragEvent | r) i

#onDragExit

onDragExit :: forall r i. (DragEvent -> Maybe i) -> IProp (onDragExit :: DragEvent | r) i

#onDragEnter

onDragEnter :: forall r i. (DragEvent -> Maybe i) -> IProp (onDragEnter :: DragEvent | r) i

#onDragEnd

onDragEnd :: forall r i. (DragEvent -> Maybe i) -> IProp (onDragEnd :: DragEvent | r) i

#onDrag

onDrag :: forall r i. (DragEvent -> Maybe i) -> IProp (onDrag :: DragEvent | r) i

#onDoubleClick

onDoubleClick :: forall r i. (MouseEvent -> Maybe i) -> IProp (onDoubleClick :: MouseEvent | r) i

#onContextMenu

onContextMenu :: forall r i. (MouseEvent -> Maybe i) -> IProp (onContextMenu :: MouseEvent | r) i

#onClick

onClick :: forall r i. (MouseEvent -> Maybe i) -> IProp (onClick :: MouseEvent | r) i

#onChecked

onChecked :: forall r i. (Boolean -> Maybe i) -> IProp (checked :: Boolean, onChange :: Event | r) i

#onChange

onChange :: forall r i. (Event -> Maybe i) -> IProp (onChange :: Event | r) i

#onBlur

onBlur :: forall r i. (FocusEvent -> Maybe i) -> IProp (onBlur :: FocusEvent | r) i

#onAbort

onAbort :: forall r i. (Event -> Maybe i) -> IProp (onAbort :: Event | r) i

#always_

always_ :: forall i a. i -> a -> Maybe i

#always

always :: forall i a. (a -> i) -> a -> Maybe i

Re-exports from Spork.Html.Properties

#Style

data Style

Constructors

#MenuType

#FormMethod

data FormMethod

Constructors

#width

width :: forall r i. CSSPixel -> IProp (width :: CSSPixel | r) i

#value

value :: forall r i. String -> IProp (value :: String | r) i

#type_

type_ :: forall value r i. ToPropValue value => value -> IProp (type :: value | r) i

#title

title :: forall r i. String -> IProp (title :: String | r) i

#target

target :: forall r i. String -> IProp (target :: String | r) i

#tabIndex

tabIndex :: forall r i. Int -> IProp (tabIndex :: Int | r) i

#styles

styles :: forall r i. Array Style -> IProp (style :: String | r) i

#style

style :: forall r i. String -> IProp (style :: String | r) i

#src

src :: forall r i. String -> IProp (src :: String | r) i

#spellcheck

spellcheck :: forall r i. Boolean -> IProp (spellcheck :: Boolean | r) i

#rows

rows :: forall r i. Int -> IProp (rows :: Int | r) i

#rowSpan

rowSpan :: forall r i. Int -> IProp (rowSpan :: Int | r) i

#required

required :: forall r i. Boolean -> IProp (required :: Boolean | r) i

#rel

rel :: forall r i. String -> IProp (rel :: String | r) i

#readOnly

readOnly :: forall r i. Boolean -> IProp (readOnly :: Boolean | r) i

#placeholder

placeholder :: forall r i. String -> IProp (placeholder :: String | r) i

#noValidate

noValidate :: forall r i. Boolean -> IProp (noValidate :: Boolean | r) i

#name

name :: forall r i. String -> IProp (name :: String | r) i

#multiple

multiple :: forall r i. Boolean -> IProp (multiple :: Boolean | r) i

#method

method :: forall r i. FormMethod -> IProp (method :: FormMethod | r) i

#id_

id_ :: forall r i. String -> IProp (id :: String | r) i

#href

href :: forall r i. String -> IProp (href :: String | r) i

#hidden

hidden :: forall r i. Boolean -> IProp (hidden :: Boolean | r) i

#height

height :: forall r i. CSSPixel -> IProp (height :: CSSPixel | r) i

#for

for :: forall r i. String -> IProp (for :: String | r) i

#enctype

enctype :: forall r i. String -> IProp (enctype :: String | r) i

#enabled

enabled :: forall r i. Boolean -> IProp (disabled :: Boolean | r) i

#draggable

draggable :: forall r i. Boolean -> IProp (draggable :: Boolean | r) i

#disabled

disabled :: forall r i. Boolean -> IProp (disabled :: Boolean | r) i

#cols

cols :: forall r i. Int -> IProp (cols :: Int | r) i

#colSpan

colSpan :: forall r i. Int -> IProp (colSpan :: Int | r) i

#classes

classes :: forall r i. Array String -> IProp (class :: String | r) i

#checked

checked :: forall r i. Boolean -> IProp (checked :: Boolean | r) i

#charset

charset :: forall r i. String -> IProp (charset :: String | r) i

#autofocus

autofocus :: forall r i. Boolean -> IProp (autofocus :: Boolean | r) i

#autocomplete

autocomplete :: forall r i. Boolean -> IProp (autocomplete :: OnOff | r) i

#alt

alt :: forall r i. String -> IProp (alt :: String | r) i

#action

action :: forall r i. String -> IProp (action :: String | r) i

Modules