haskell-halogen-core
Safe HaskellNone
LanguageGHC2021

Halogen.HTML.Core

Synopsis

Documentation

attr :: Maybe Namespace -> AttrName -> Text -> Prop i Source #

Create a HTML attribute.

element :: forall w i. Maybe Namespace -> ElemName -> [Prop i] -> [HTML w i] -> HTML w i Source #

A smart constructor for HTML elements.

handler :: EventType -> (Event -> Maybe i) -> Prop i Source #

Create an event handler.

keyed :: forall w i. Maybe Namespace -> ElemName -> [Prop i] -> [(Text, HTML w i)] -> HTML w i Source #

A smart constructor for HTML elements with keyed children.

prop :: IsProp value => PropName value -> value -> Prop i Source #

Create a HTML property.

ref :: (Maybe Element -> Maybe i) -> Prop i Source #

renderWidget :: (i -> j) -> (w -> HTML x j) -> HTML w i -> HTML x j Source #

text :: Text -> HTML w i Source #

Constructs a text node HTML value.

unHTML :: HTML w i -> VDom [Prop (Input i)] w Source #

widget :: p -> HTML p q Source #

newtype HTML w i Source #

Constructors

HTML 

Fields

Instances

Instances details
Bifunctor HTML Source # 
Instance details

Defined in Halogen.HTML.Core

Methods

bimap :: (a -> b) -> (c -> d) -> HTML a c -> HTML b d #

first :: (a -> b) -> HTML a c -> HTML b c #

second :: (b -> c) -> HTML a b -> HTML a c #

(Layout f, Default (LayoutConstraints f)) => AddLayout f w i (HTML w i) Source # 
Instance details

Defined in Halogen.HTML.Layout

Methods

(>>) :: HTML w i -> LayoutM f w i -> LayoutM f w i Source #

Layout f => AddLayout f w i (LayoutConstraints f, HTML w i) Source # 
Instance details

Defined in Halogen.HTML.Layout

Methods

(>>) :: (LayoutConstraints f, HTML w i) -> LayoutM f w i -> LayoutM f w i Source #

Functor (HTML w) Source # 
Instance details

Defined in Halogen.HTML.Core

Methods

fmap :: (a -> b) -> HTML w a -> HTML w b #

(<$) :: a -> HTML w b -> HTML w a #

class IsProp a where Source #

Methods

toPropValue :: a -> PropValue a Source #

Instances

Instances details
IsProp AutocompleteType Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp ButtonType Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp CrossOriginValue Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp DirValue Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp FormMethod Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp InputAcceptType Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp InputType Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp KindValue Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp MenuType Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp MenuitemType Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp OrderedListType Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp PreloadValue Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp ScopeValue Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp StepValue Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp WrapValue Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp MediaType Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp Text Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp Bool Source # 
Instance details

Defined in Halogen.HTML.Core

IsProp Double Source # 
Instance details

Defined in Halogen.HTML.Core

Integral a => IsProp a Source # 
Instance details

Defined in Halogen.HTML.Core

Methods

toPropValue :: a -> PropValue a Source #

newtype Namespace Source #

Constructors

Namespace Text 

Instances

Instances details
IsString Namespace Source # 
Instance details

Defined in Halogen.VDom.Types

Show Namespace Source # 
Instance details

Defined in Halogen.VDom.Types

Eq Namespace Source # 
Instance details

Defined in Halogen.VDom.Types

Ord Namespace Source # 
Instance details

Defined in Halogen.VDom.Types

newtype ElemName Source #

Constructors

ElemName Text 

Instances

Instances details
IsString ElemName Source # 
Instance details

Defined in Halogen.VDom.Types

Show ElemName Source # 
Instance details

Defined in Halogen.VDom.Types

Eq ElemName Source # 
Instance details

Defined in Halogen.VDom.Types

Ord ElemName Source # 
Instance details

Defined in Halogen.VDom.Types