reflex-dom-helpers-0.2.0.1: Html tag helpers for reflex-dom

Copyright(c) Layer 3 Communications 2016
Matthew Parsons 2016
LicenseBSD3
Maintainerparsonsmatt@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Reflex.Tags.TH

Description

This module provide utilities for generating convenience functions for HTML elements.

Synopsis

Documentation

elements :: [String] Source #

A list of all HTML elements.

gen :: Name -> String -> DecsQ Source #

Given a name for a function and a suffix, this function will generate a list of declarations. Each declaration will consist of the function applied to each of the HTML elements with the given suffix.

elS :: DomBuilder t m => String -> m a -> m a Source #

elS' :: DomBuilder t m => String -> m a -> m (Element EventResult (DomBuilderSpace m) t, a) Source #

elClassS :: DomBuilder t m => String -> Text -> m a -> m a Source #

elAttrS :: DomBuilder t m => String -> Map Text Text -> m a -> m a Source #

elDynAttrS :: (DomBuilder t m, PostBuild t m) => String -> Dynamic t (Map Text Text) -> m a -> m a Source #

gen_ :: String -> DecsQ Source #

Generate el functions for all of the elements with an _ suffix.

gen' :: String -> DecsQ Source #

Generate el' functions for all of the elements with an ' suffix.

genAttr :: String -> DecsQ Source #

Generate elAttr functions for all of the elements with an Attr suffix.

genAttr' :: String -> DecsQ Source #

Generate elAttr' functions for all of the elements with an Attr' suffix.

genDynAttr :: String -> DecsQ Source #

Generate elDynAttr functions for all of the elements with a DynAttr suffix.

genDynAttr' :: String -> DecsQ Source #

Generate all of the tags with all of the suffixes.

genTagsSuffixed :: DecsQ Source #

Generate all of the tags with all of the suffixes.