choonkeat/html-data/3.0.0

NOTE: the latest version is 4.0.0

HtmlData.Attributes

See documentation of Html.Attributes

Except, the types here are intentionally fully exposed. The helper functions exists merely to make writing them feel like elm/html et al

type Attribute msg
= Attribute String String
| NoAttribute
| EventListener (EventListener msg)
type EventListener msg
= On String (Decoder msg)
| OnInput (String -> msg)
| OnCheck (Bool -> msg)
| StopPropagationOn String (Decoder ( msg, Bool ))
| PreventDefaultOn String (Decoder ( msg, Bool ))
| Custom
String
(Decoder
{ message : msg
, stopPropagation : Bool
, preventDefault : Bool
}
)

Stores declarations for Html.Events

accept : String -> Attribute msg
acceptCharset : String -> Attribute msg
accesskey : Char -> Attribute msg
action : String -> Attribute msg
align : String -> Attribute msg
alt : String -> Attribute msg
attribute : String -> String -> Attribute msg
autocomplete : Bool -> Attribute msg
autofocus : Bool -> Attribute msg
autoplay : Bool -> Attribute msg
checked : Bool -> Attribute msg
cite : String -> Attribute msg
class : String -> Attribute msg
classList : List ( String, Bool ) -> Attribute msg
cols : Int -> Attribute msg
colspan : Int -> Attribute msg
contextmenu : String -> Attribute msg
controls : Bool -> Attribute msg
coords : String -> Attribute msg
datetime : String -> Attribute msg
default : Bool -> Attribute msg
dir : String -> Attribute msg
disabled : Bool -> Attribute msg
download : String -> Attribute msg
draggable : String -> Attribute msg
dropzone : String -> Attribute msg
enctype : String -> Attribute msg
for : String -> Attribute msg
form : String -> Attribute msg
headers : String -> Attribute msg
height : Int -> Attribute msg
hidden : Bool -> Attribute msg
href : String -> Attribute msg
hreflang : String -> Attribute msg
id : String -> Attribute msg
ismap : Bool -> Attribute msg
itemprop : String -> Attribute msg
kind : String -> Attribute msg
lang : String -> Attribute msg
list : String -> Attribute msg
loop : Bool -> Attribute msg
manifest : String -> Attribute msg
map : (a -> msg) -> Attribute a -> Attribute msg
max : String -> Attribute msg
maxlength : Int -> Attribute msg
media : String -> Attribute msg
method : String -> Attribute msg
min : String -> Attribute msg
minlength : Int -> Attribute msg
multiple : Bool -> Attribute msg
name : String -> Attribute msg
novalidate : Bool -> Attribute msg
pattern : String -> Attribute msg
ping : String -> Attribute msg
placeholder : String -> Attribute msg
poster : String -> Attribute msg
preload : String -> Attribute msg
pubdate : String -> Attribute msg
readonly : Bool -> Attribute msg
rel : String -> Attribute msg
required : Bool -> Attribute msg
reversed : Bool -> Attribute msg
rows : Int -> Attribute msg
rowspan : Int -> Attribute msg
sandbox : String -> Attribute msg
scope : String -> Attribute msg
selected : Bool -> Attribute msg
shape : String -> Attribute msg
size : Int -> Attribute msg
spellcheck : Bool -> Attribute msg
src : String -> Attribute msg
srcdoc : String -> Attribute msg
srclang : String -> Attribute msg
start : Int -> Attribute msg
step : String -> Attribute msg
style : String -> String -> Attribute msg
tabindex : Int -> Attribute msg
target : String -> Attribute msg
title : String -> Attribute msg
type_ : String -> Attribute msg
usemap : String -> Attribute msg
value : String -> Attribute msg
width : Int -> Attribute msg
wrap : String -> Attribute msg