Module

Spork.Html

Package
purescript-spork
Repository
natefaubion/purescript-spork

Re-exports from Spork.Html.Core

#IProp Source

newtype IProp (r :: Row Type) i

Constructors

Instances

#Html Source

newtype Html i

Instances

#ElemRef Source

data ElemRef a

Constructors

Instances

#when Source

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

#text Source

text :: forall i. String -> Html i

#ref Source

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

#prop Source

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

#on Source

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

#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.

#lazy3 Source

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

Like lazy, but allows three arguments.

#lazy2 Source

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

Like lazy, but allows two arguments.

#lazy Source

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

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

#keyedWithNS Source

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

#keyed Source

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

#empty Source

empty :: forall i. Html i

#elemWithNS Source

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

#elem Source

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

#attr Source

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

Re-exports from Spork.Html.Elements

#wbr Source

wbr :: forall i. Leaf HTMLwbr i

#video Source

video :: forall i. Node HTMLvideo i

#var Source

var :: forall i. Node HTMLvar i

#ul Source

ul :: forall i. Node HTMLul i

#u Source

u :: forall i. Node HTMLu i

#track Source

track :: forall i. Leaf HTMLtrack i

#tr Source

tr :: forall i. Node HTMLtr i

#time Source

time :: forall i. Node HTMLtime i

#thead Source

thead :: forall i. Node HTMLthead i

#th Source

th :: forall i. Node HTMLth i

#tfoot Source

tfoot :: forall i. Node HTMLtfoot i

#textarea Source

textarea :: forall i. Leaf HTMLtextarea i

#td Source

td :: forall i. Node HTMLtd i

#tbody Source

tbody :: forall i. Node HTMLtbody i

#table Source

table :: forall i. Node HTMLtable i

#sup Source

sup :: forall i. Node HTMLsup i

#summary Source

summary :: forall i. Node HTMLsummary i

#sub Source

sub :: forall i. Node HTMLsub i

#strong Source

strong :: forall i. Node HTMLstrong i

#span Source

span :: forall i. Node HTMLspan i

#source Source

source :: forall i. Leaf HTMLsource i

#small Source

small :: forall i. Node HTMLsmall i

#select Source

select :: forall i. Node HTMLselect i

#section Source

section :: forall i. Node HTMLsection i

#script Source

script :: forall i. Node HTMLscript i

#samp Source

samp :: forall i. Node HTMLsamp i

#ruby Source

ruby :: forall i. Node HTMLruby i

#rt Source

rt :: forall i. Node HTMLrt i

#rp Source

rp :: forall i. Node HTMLrp i

#q Source

q :: forall i. Node HTMLq i

#progress Source

progress :: forall i. Node HTMLprogress i

#pre Source

pre :: forall i. Node HTMLpre i

#param Source

param :: forall i. Leaf HTMLparam i

#p Source

p :: forall i. Node HTMLp i

#output Source

output :: forall i. Node HTMLoutput i

#option Source

option :: forall i. Node HTMLoption i

#optgroup Source

optgroup :: forall i. Node HTMLoptgroup i

#ol Source

ol :: forall i. Node HTMLol i

#object Source

object :: forall i. Node HTMLobject i

#noscript Source

noscript :: forall i. Node HTMLnoscript i

#nav Source

nav :: forall i. Node HTMLnav i

#meter Source

meter :: forall i. Node HTMLmeter i

#meta Source

meta :: forall i. Leaf HTMLmeta i

#menuitem Source

menuitem :: forall i. Node HTMLmenuitem i

#menu Source

menu :: forall i. Node HTMLmenu i

#mark Source

mark :: forall i. Node HTMLmark i

#map Source

map :: forall i. Node HTMLmap i

#main Source

main :: forall i. Node HTMLmain i

#li Source

li :: forall i. Node HTMLli i

#label Source

label :: forall i. Node HTMLlabel i

#kbd Source

kbd :: forall i. Node HTMLkbd i

#ins Source

ins :: forall i. Node HTMLins i

#input Source

input :: forall i. Leaf HTMLinput i

#img Source

img :: forall i. Leaf HTMLimg i

#iframe Source

iframe :: forall i. Leaf HTMLiframe i

#i Source

i :: forall i. Node HTMLi i

#html Source

html :: forall i. Node HTMLhtml i

#hr Source

hr :: forall i. Leaf HTMLhr i

#header Source

header :: forall i. Node HTMLheader i

#head Source

head :: forall i. Node HTMLhead i

#h6 Source

h6 :: forall i. Node HTMLh6 i

#h5 Source

h5 :: forall i. Node HTMLh5 i

#h4 Source

h4 :: forall i. Node HTMLh4 i

#h3 Source

h3 :: forall i. Node HTMLh3 i

#h2 Source

h2 :: forall i. Node HTMLh2 i

#h1 Source

h1 :: forall i. Node HTMLh1 i

#form Source

form :: forall i. Node HTMLform i

#footer Source

footer :: forall i. Node HTMLfooter i

#figure Source

figure :: forall i. Node HTMLfigure i

#figcaption Source

#fieldset Source

fieldset :: forall i. Node HTMLfieldset i

#embed Source

embed :: forall i. Node HTMLembed i

#em Source

em :: forall i. Node HTMLem i

#dt Source

dt :: forall i. Node HTMLdt i

#dl Source

dl :: forall i. Node HTMLdl i

#div Source

div :: forall i. Node HTMLdiv i

#dialog Source

dialog :: forall i. Node HTMLdialog i

#dfn Source

dfn :: forall i. Node HTMLdfn i

#details Source

details :: forall i. Node HTMLdetails i

#del Source

del :: forall i. Node HTMLdel i

#dd Source

dd :: forall i. Node HTMLdd i

#datalist Source

datalist :: forall i. Node HTMLdatalist i

#command Source

command :: forall i. Leaf HTMLcommand i

#colgroup Source

colgroup :: forall i. Node HTMLcolgroup i

#col Source

col :: forall i. Leaf HTMLcol i

#code Source

code :: forall i. Node HTMLcode i

#cite Source

cite :: forall i. Node HTMLcite i

#caption Source

caption :: forall i. Node HTMLcaption i

#canvas Source

canvas :: forall i. Leaf HTMLcanvas i

#button Source

button :: forall i. Node HTMLbutton i

#br Source

br :: forall i. Leaf HTMLbr i

#body Source

body :: forall i. Node HTMLbody i

#blockquote Source

#bdo Source

bdo :: forall i. Node HTMLbdo i

#bdi Source

bdi :: forall i. Node HTMLbdi i

#base Source

base :: forall i. Leaf HTMLbase i

#b Source

b :: forall i. Node HTMLb i

#audio Source

audio :: forall i. Node HTMLaudio i

#aside Source

aside :: forall i. Node HTMLaside i

#article Source

article :: forall i. Node HTMLarticle i

#area Source

area :: forall i. Leaf HTMLarea i

#address Source

address :: forall i. Node HTMLaddress i

#abbr Source

abbr :: forall i. Node HTMLabbr i

#a Source

a :: forall i. Node HTMLa i

Re-exports from Spork.Html.Events

#onValueInput Source

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

#onValueChange Source

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

#onTransitionEnd Source

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

#onSubmit Source

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

#onSelectedIndexChange Source

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

#onSelect Source

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

#onScroll Source

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

#onReset Source

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

#onMouseUp Source

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

#onMouseOver Source

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

#onMouseOut Source

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

#onMouseMove Source

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

#onMouseLeave Source

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

#onMouseEnter Source

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

#onMouseDown Source

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

#onLoad Source

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

#onKeyUp Source

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

#onKeyPress Source

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

#onKeyDown Source

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

#onInvalid Source

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

#onInput Source

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

#onFocusOut Source

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

#onFocusIn Source

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

#onFocus Source

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

#onError Source

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

#onDrop Source

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

#onDragStart Source

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

#onDragOver Source

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

#onDragLeave Source

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

#onDragExit Source

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

#onDragEnter Source

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

#onDragEnd Source

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

#onDrag Source

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

#onDoubleClick Source

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

#onContextMenu Source

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

#onClick Source

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

#onChecked Source

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

#onChange Source

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

#onBlur Source

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

#onAbort Source

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

#always_ Source

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

#always Source

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

Re-exports from Spork.Html.Properties

#Style Source

data Style

Constructors

#FormMethod Source

data FormMethod

Constructors

#width Source

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

#value Source

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

#type_ Source

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

#title Source

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

#target Source

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

#tabIndex Source

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

#styles Source

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

#style Source

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

#src Source

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

#spellcheck Source

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

#rows Source

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

#rowSpan Source

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

#required Source

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

#rel Source

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

#readOnly Source

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

#placeholder Source

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

#noValidate Source

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

#name Source

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

#multiple Source

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

#method Source

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

#id_ Source

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

#href Source

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

#hidden Source

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

#height Source

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

#for Source

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

#enctype Source

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

#enabled Source

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

#draggable Source

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

#disabled Source

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

#cols Source

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

#colSpan Source

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

#classes Source

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

#checked Source

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

#charset Source

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

#autofocus Source

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

#autocomplete Source

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

#alt Source

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

#action Source

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