Safe Haskell | None |
---|---|
Language | Haskell2010 |
Odd tag helpers, these have uncommen html attributes
They don't fit in the normal
pattern of Abstract
Synopsis
- image :: DomBuilder t m => Text -> m ()
- imageClass :: DomBuilder t m => Text -> Text -> m ()
- ahref :: (DomBuilder t m, PostBuild t m) => Text -> m a -> m a
- ahref' :: (DomBuilder t m, PostBuild t m) => AttrMap -> Text -> m a -> m a
- ahrefDyn :: (DomBuilder t m, PostBuild t m) => Dynamic t AttrMap -> Dynamic t Text -> m a -> m a
- textSpace :: DomBuilder t m => m ()
- elDynAttrPrevDef :: forall a en m t. (DomBuilder t m, PostBuild t m) => EventName en -> Text -> Dynamic t (Map Text Text) -> m a -> m (Element EventResult (DomBuilderSpace m) t, a)
- elDynAttrModConf :: (DomBuilder t m, PostBuild t m) => (ElementConfig EventResult t (DomBuilderSpace m) -> ElementConfig EventResult t (DomBuilderSpace m)) -> Text -> Dynamic t (Map Text Text) -> m a -> m (Element EventResult (DomBuilderSpace m) t, a)
Documentation
image :: DomBuilder t m => Text -> m () Source #
kindoff hard to set an image tag in reflex
imageClass :: DomBuilder t m => Text -> Text -> m () Source #
first class second src
Link
ahref :: (DomBuilder t m, PostBuild t m) => Text -> m a -> m a Source #
a html tag that accepts any text into it's href value
ahrefDyn :: (DomBuilder t m, PostBuild t m) => Dynamic t AttrMap -> Dynamic t Text -> m a -> m a Source #
Space
textSpace :: DomBuilder t m => m () Source #
sometimes you just need 2 pieces of text to seperate with a space
Prevent browser default
:: (DomBuilder t m, PostBuild t m) | |
=> EventName en | Event on the element to configure with |
-> Text | Element tag |
-> Dynamic t (Map Text Text) | Element attributes |
-> m a | Child of element |
-> m (Element EventResult (DomBuilderSpace m) t, a) |
From https://gist.github.com/3noch/134b1ee7fa48c347be9d164c3fac4ef7
Like elDynAttr'
but configures "prevent default" on the given event.
Blocks for example a context menu from poping up on right mouse click.
This should be used with caution, as it may be unexpected for end user.
elDynAttrModConf :: (DomBuilder t m, PostBuild t m) => (ElementConfig EventResult t (DomBuilderSpace m) -> ElementConfig EventResult t (DomBuilderSpace m)) -> Text -> Dynamic t (Map Text Text) -> m a -> m (Element EventResult (DomBuilderSpace m) t, a) Source #
Like elDynAttr'
but allows you to modify the element configuration.
Special thanks to @luigy: https://gist.github.com/luigy/b49ce04de8462e594c9c2b5b455ae5a5#file-foo-hs