Safe Haskell | None |
---|---|
Language | Haskell2010 |
A preliminary renderer that produces JS
components when run using
Fay.
Synopsis
- escapeMarkupEntities :: Text -> Builder
- fromChoiceString :: ChoiceString -> Builder -> Builder
- render :: Show act => Markup act -> Builder -> Builder
- renderHtml :: Show act => Markup act -> String
- data EventType
- = OnCopyE
- | OnCutE
- | OnPasteE
- | OnKeyDownE
- | OnKeyPressE
- | OnKeyUpE
- | OnFocusE
- | OnBlurE
- | OnChangeE
- | OnInputE
- | OnSubmitE
- | OnClickE
- | OnDoubleClickE
- | OnDragE
- | OnDragEndE
- | OnDragEnterE
- | OnDragExitE
- | OnDragLeaveE
- | OnDragOverE
- | OnDragStartE
- | OnDropE
- | OnMouseDownE
- | OnMouseEnterE
- | OnMouseLeaveE
- | OnMouseMoveE
- | OnMouseOutE
- | OnMouseOverE
- | OnMouseUpE
- | OnTouchCancelE
- | OnTouchEndE
- | OnTouchMoveE
- | OnTouchStartE
- | OnScrollE
- | OnWheelE
- eventName :: EventType -> String
- data Handler
- = IgnoreEvent
- | HandleEvent (IO (Bool -> IO ()))
- registerEvents :: Markup a -> [CallbackAction a] -> [CallbackAction a]
- renderNewMarkup :: Show act => Markup act -> Html
Documentation
Escape predefined XML entities in a text value
:: ChoiceString | String to render |
-> Builder | String to append |
-> Builder | Resulting string |
Render a ChoiceString
.
render :: Show act => Markup act -> Builder -> Builder Source #
Render some Markup
to a virtual dom.
This function is morally pure.
JS defines the following event types:
IgnoreEvent | |
HandleEvent (IO (Bool -> IO ())) | Contains an IO action which generates the callback to attach to the event |
registerEvents :: Markup a -> [CallbackAction a] -> [CallbackAction a] Source #
renderNewMarkup :: Show act => Markup act -> Html Source #