diff options
Diffstat (limited to 'Miso/Extend.hs')
-rw-r--r-- | Miso/Extend.hs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Miso/Extend.hs b/Miso/Extend.hs deleted file mode 100644 index 9ebdd08..0000000 --- a/Miso/Extend.hs +++ /dev/null @@ -1,28 +0,0 @@ -{-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE NoImplicitPrelude #-} - -module Miso.Extend - ( crossorigin_, - onPreventClick, - ) -where - -import Alpha -import Miso -import Miso.String - --- | HTML crossorigin attribute --- --- https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin -crossorigin_ :: MisoString -> Attribute action -crossorigin_ = textProp "crossorigin" - --- | Like 'onClick' but prevents the default action from triggering. Use this to --- overide 'a_' links, for example. -onPreventClick :: action -> Attribute action -onPreventClick action = - onWithOptions - Miso.defaultOptions {preventDefault = True} - "click" - emptyDecoder - (\() -> action) |