Copyright | (c) Layer 3 Communications 2016 Matthew Parsons 2016 |
---|---|
License | BSD3 |
Maintainer | parsonsmatt@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
This module provide utilities for generating convenience functions for HTML elements.
Synopsis
- elements :: [String]
- gen :: Name -> String -> DecsQ
- elS :: DomBuilder t m => String -> m a -> m a
- elS' :: DomBuilder t m => String -> m a -> m (Element EventResult (DomBuilderSpace m) t, a)
- elClassS :: DomBuilder t m => String -> Text -> m a -> m a
- elAttrS :: DomBuilder t m => String -> Map Text Text -> m a -> m a
- elAttrS' :: DomBuilder t m => String -> Map Text Text -> m a -> m (Element EventResult (DomBuilderSpace m) t, a)
- elDynAttrS :: (DomBuilder t m, PostBuild t m) => String -> Dynamic t (Map Text Text) -> m a -> m a
- elDynAttrS' :: (DomBuilder t m, PostBuild t m) => String -> Dynamic t (Map Text Text) -> m a -> m (Element EventResult (DomBuilderSpace m) t, a)
- gen_ :: String -> DecsQ
- genClass :: String -> DecsQ
- gen' :: String -> DecsQ
- genAttr :: String -> DecsQ
- genAttr' :: String -> DecsQ
- genDynAttr :: String -> DecsQ
- genDynAttr' :: String -> DecsQ
- genTagsSuffixed :: DecsQ
Documentation
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 #
elAttrS' :: DomBuilder t m => String -> Map Text Text -> m a -> m (Element EventResult (DomBuilderSpace m) t, a) Source #
elDynAttrS :: (DomBuilder t m, PostBuild t m) => String -> Dynamic t (Map Text Text) -> m a -> m a Source #
elDynAttrS' :: (DomBuilder t m, PostBuild t m) => String -> Dynamic t (Map Text Text) -> m a -> m (Element EventResult (DomBuilderSpace m) t, a) Source #
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.