Module
Halogen.HTML
- Package
- purescript-halogen
- Repository
- slamdata/purescript-halogen
This module re-exports the types for the HTML
DSL, and values for all
supported HTML elements.
#PlainHTML Source
type PlainHTML = HTML Void Void
A type useful for a chunk of HTML with no slot-embedding or query-raising.
Often a polymorphic usage of HTML
is good enough for this, but sometimes
it's useful to have a type like this (and accompanying coercion) when doing
things like creating components that accept a chunk of HTML as part of
their configuration.
#fromPlainHTML Source
fromPlainHTML :: forall i p. PlainHTML -> HTML p i
Relaxes the type of PlainHTML
to make it compatible with all HTML
.
#slot Source
slot :: forall g o i p m f. p -> Component HTML g i o m -> i -> (o -> Maybe (f Unit)) -> ParentHTML f g p m
Defines a slot for a child component. Takes:
- the slot "address" value
- the component for the slot
- the input value to pass to the component
- a function mapping outputs from the component to a query in the parent
#slot' Source
slot' :: forall m o i p' p g' g f. ChildPath g g' p p' -> p -> Component HTML g i o m -> i -> (o -> Maybe (f Unit)) -> ParentHTML f g' p' m
Defines a slot for a child component when a parent has multiple types of child component. Takes:
- the
ChildPath
for this particular child component type - the slot "address" value
- the component for the slot
- the input value to pass to the component
- a function mapping outputs from the component to a query in the parent
Re-exports from Halogen.HTML.Core
Re-exports from Halogen.HTML.Elements
#textarea Source
textarea :: forall i p. Leaf HTMLtextarea p i
#summary Source
summary :: forall i p. Node HTMLsummary p i
#strong Source
strong :: forall i p. Node HTMLstrong p i
#source Source
source :: forall i p. Leaf HTMLsource p i
#select Source
select :: forall i p. Node HTMLselect p i
#section Source
section :: forall i p. Node HTMLsection p i
#script Source
script :: forall i p. Node HTMLscript p i
#progress Source
progress :: forall i p. Node HTMLprogress p i
#output Source
output :: forall i p. Node HTMLoutput p i
#option Source
option :: forall i p. Node HTMLoption p i
#optgroup Source
optgroup :: forall i p. Node HTMLoptgroup p i
#object Source
object :: forall i p. Node HTMLobject p i
#noscript Source
noscript :: forall i p. Node HTMLnoscript p i
#legend Source
legend :: forall i p. Node HTMLlegend p i
#iframe Source
iframe :: forall i p. Leaf HTMLiframe p i
#header Source
header :: forall i p. Node HTMLheader p i
#figure Source
figure :: forall i p. Node HTMLfigure p i
#fieldset Source
fieldset :: forall i p. Node HTMLfieldset p i
#dialog Source
dialog :: forall i p. Node HTMLdialog p i
#details Source
details :: forall i p. Node HTMLdetails p i
#datalist Source
datalist :: forall i p. Node HTMLdatalist p i
#command Source
command :: forall i p. Leaf HTMLcommand p i
#colgroup Source
colgroup :: forall i p. Node HTMLcolgroup p i
#canvas Source
canvas :: forall i p. Leaf HTMLcanvas p i
#button Source
button :: forall i p. Node HTMLbutton p i
#blockquote Source
blockquote :: forall i p. Node HTMLblockquote p i
#article Source
article :: forall i p. Node HTMLarticle p i
#address Source
address :: forall i p. Node HTMLaddress p i
Re-exports from Halogen.HTML.Properties
- Modules
- Halogen
- Halogen.
Aff - Halogen.
Aff. Driver - Halogen.
Aff. Driver. Eval - Halogen.
Aff. Driver. State - Halogen.
Aff. Util - Halogen.
Component - Halogen.
Component. ChildPath - Halogen.
Component. Profunctor - Halogen.
Data. OrdBox - Halogen.
Data. Prism - Halogen.
HTML - Halogen.
HTML. Core - Halogen.
HTML. Elements - Halogen.
HTML. Elements. Keyed - Halogen.
HTML. Events - Halogen.
HTML. Properties - Halogen.
HTML. Properties. ARIA - Halogen.
Query - Halogen.
Query. EventSource - Halogen.
Query. ForkF - Halogen.
Query. HalogenM - Halogen.
Query. InputF - Halogen.
VDom. Driver