Module
Flame.Html.Attribute
- Package
- purescript-flame
- Repository
- easafe/purescript-flame
Convenience module to simplify export list
Re-exports from Flame.Html.Attribute.Internal
#ToStringAttribute Source
type ToStringAttribute = ToNodeData String
#ToNumberAttribute Source
type ToNumberAttribute = ToNodeData Number
#ToIntAttribute Source
type ToIntAttribute = ToNodeData Int
#ToBooleanAttribute Source
type ToBooleanAttribute = ToNodeData Boolean
#ToClassList Source
class ToClassList a where
Enables either strings or records be used as an argument to class'
Members
Instances
ToClassList String
(Homogeneous r Boolean) => ToClassList (Record r)
#ToStyleList Source
class ToStyleList a where
Enables either tuples, arrays or records be used as an argument to style
Members
toStyleList :: a -> Object String
Instances
ToStyleList (Tuple String String)
(Homogeneous r String) => ToStyleList (Record r)
(Foldable f) => ToStyleList (f (Tuple String String))
#style Source
style :: forall a r. ToStyleList r => r -> NodeData a
Sets the node style
https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style
#key Source
key :: ToStringAttribute
Set the key attribute for "keyed" rendering
#createProperty Source
createProperty :: forall message. String -> String -> NodeData message
Sets a DOM property
#createAttribute Source
createAttribute :: forall message. String -> String -> NodeData message
Creates a HTML attribute
#class' Source
class' :: forall a b. ToClassList b => b -> NodeData a
Re-exports from Flame.Html.Event
#ToSpecialEvent Source
type ToSpecialEvent message t = (t -> message) -> NodeData message
#ToRawEvent Source
type ToRawEvent message = (Event -> message) -> NodeData message
#onWheel' Source
onWheel' :: forall message. ToRawEvent message
#onUnload' Source
onUnload' :: forall message. ToRawEvent message
#onSubmit' Source
onSubmit' :: forall message. ToRawEvent message
#onSelect' Source
onSelect' :: forall message. ToRawEvent message
#onSelect Source
onSelect :: forall message. ToSpecialEvent message String
#onScroll' Source
onScroll' :: forall message. ToRawEvent message
#onReset' Source
onReset' :: forall message. ToRawEvent message
#onMouseup' Source
onMouseup' :: forall message. ToRawEvent message
#onMouseover' Source
onMouseover' :: forall message. ToRawEvent message
#onMouseover Source
onMouseover :: forall message. ToEvent message
#onMouseout' Source
onMouseout' :: forall message. ToRawEvent message
#onMouseout Source
onMouseout :: forall message. ToEvent message
#onMousemove' Source
onMousemove' :: forall message. ToRawEvent message
#onMousemove Source
onMousemove :: forall message. ToEvent message
#onMouseleave' Source
onMouseleave' :: forall message. ToRawEvent message
#onMouseleave Source
onMouseleave :: forall message. ToEvent message
#onMouseenter' Source
onMouseenter' :: forall message. ToRawEvent message
#onMouseenter Source
onMouseenter :: forall message. ToEvent message
#onMousedown' Source
onMousedown' :: forall message. ToRawEvent message
#onMousedown Source
onMousedown :: forall message. ToEvent message
#onLoad' Source
onLoad' :: forall message. ToRawEvent message
#onKeyup' Source
onKeyup' :: forall message. ToRawEvent message
#onKeypress' Source
onKeypress' :: forall message. ToRawEvent message
#onKeypress Source
onKeypress :: forall message. ToSpecialEvent message (Tuple Key String)
#onKeydown' Source
onKeydown' :: forall message. ToRawEvent message
#onInput' Source
onInput' :: forall message. ToRawEvent message
#onInput Source
onInput :: forall message. ToSpecialEvent message String
This event fires when the value of an input, select, textarea, contenteditable or designMode on elements changes
#onFocusout' Source
onFocusout' :: forall message. ToRawEvent message
#onFocusout Source
onFocusout :: forall message. ToEvent message
#onFocusin' Source
onFocusin' :: forall message. ToRawEvent message
#onFocus' Source
onFocus' :: forall message. ToRawEvent message
#onError' Source
onError' :: forall message. ToRawEvent message
#onDrop' Source
onDrop' :: forall message. ToRawEvent message
#onDragstart' Source
onDragstart' :: forall message. ToRawEvent message
#onDragstart Source
onDragstart :: forall message. ToEvent message
#onDragover' Source
onDragover' :: forall message. ToRawEvent message
#onDragover Source
onDragover :: forall message. ToEvent message
#onDragleave' Source
onDragleave' :: forall message. ToRawEvent message
#onDragleave Source
onDragleave :: forall message. ToEvent message
#onDragenter' Source
onDragenter' :: forall message. ToRawEvent message
#onDragenter Source
onDragenter :: forall message. ToEvent message
#onDragend' Source
onDragend' :: forall message. ToRawEvent message
#onDrag' Source
onDrag' :: forall message. ToRawEvent message
#onDblclick' Source
onDblclick' :: forall message. ToRawEvent message
#onDblclick Source
onDblclick :: forall message. ToEvent message
#onClick' Source
onClick' :: forall message. ToRawEvent message
#onCheck Source
onCheck :: forall message. ToSpecialEvent message Boolean
Helper for input
event of checkboxes and radios
#onChange' Source
onChange' :: forall message. ToRawEvent message
#onBlur' Source
onBlur' :: forall message. ToRawEvent message
#createEventMessage Source
createEventMessage :: forall message. EventName -> (Event -> message) -> NodeData message
Helper for message
s that expect an event
#createEvent Source
createEvent :: forall message. EventName -> message -> NodeData message
Raises the given message
for the event
- Modules
- Flame
- Flame.
Application. EffectList - Flame.
Application. Effectful - Flame.
Application. Internal. Dom - Flame.
Application. Internal. PreMount - Flame.
Application. NoEffects - Flame.
Html. Attribute - Flame.
Html. Attribute. Internal - Flame.
Html. Element - Flame.
Html. Event - Flame.
Internal. Equality - Flame.
Internal. Fragment - Flame.
Renderer. Internal. Dom - Flame.
Renderer. String - Flame.
Serialization - Flame.
Subscription - Flame.
Subscription. Document - Flame.
Subscription. Internal. Create - Flame.
Subscription. Internal. Listener - Flame.
Subscription. Unsafe. CustomEvent - Flame.
Subscription. Window - Flame.
Types