Module
Concur.React.Props
- Package
- purescript-concur-react
- Repository
- ajnsit/purescript-concur
#emptyProp_ Source
emptyProp_ :: Props
#unsafeMkPropHandler Source
unsafeMkPropHandler :: forall a. String -> Props a
Construct a custom prop handler
#unsafeMkProp Source
unsafeMkProp :: forall b a. String -> a -> Props b
Construct a custom key value prop
#handleProp Source
handleProp :: forall b a. (a -> Effect Unit) -> Props a -> Props b
Use handleProp
to handle an event manually
#filterProp Source
filterProp :: forall a. (a -> Boolean) -> Props a -> Props a
Use this to filter the output of an event handler prop.
For example, to only handle the enter key - filterProp isEnterEvent onKeyDown
#unsafeTargetValue Source
unsafeTargetValue :: forall r. SyntheticEvent_ r -> String
Get the event target's current value
HACK: This is brittle thanks to React's event object reuse!
Safest is to use it directly on the prop like unsafeTargetValue <$> onKeyDown
#isEnterEvent Source
isEnterEvent :: SyntheticKeyboardEvent -> Boolean
Check if a keyboard event was Enter
#resetTargetValue Source
resetTargetValue :: forall event. String -> event -> Effect Unit
IMPORTANT: UNSAFE: It's unsafe to use this outside this module
#dangerouslySetInnerHTML Source
dangerouslySetInnerHTML :: forall a. { __html :: String } -> Props a
#acceptCharset Source
acceptCharset :: forall a. String -> Props a
#allowFullScreen Source
allowFullScreen :: forall a. Boolean -> Props a
#allowTransparency Source
allowTransparency :: forall a. Boolean -> Props a
#autoComplete Source
autoComplete :: forall a. String -> Props a
#cellPadding Source
cellPadding :: forall a. String -> Props a
#cellSpacing Source
cellSpacing :: forall a. String -> Props a
#contentEditable Source
contentEditable :: forall a. Boolean -> Props a
#contextMenu Source
contextMenu :: forall a. String -> Props a
#crossOrigin Source
crossOrigin :: forall a. String -> Props a
#defaultChecked Source
defaultChecked :: forall a. Boolean -> Props a
#defaultValue Source
defaultValue :: forall a. String -> Props a
#formAction Source
formAction :: forall a. String -> Props a
#formEncType Source
formEncType :: forall a. String -> Props a
#formMethod Source
formMethod :: forall a. String -> Props a
#formNoValidate Source
formNoValidate :: forall a. Boolean -> Props a
#formTarget Source
formTarget :: forall a. String -> Props a
#frameBorder Source
frameBorder :: forall a. String -> Props a
#marginHeight Source
marginHeight :: forall a. String -> Props a
#marginWidth Source
marginWidth :: forall a. String -> Props a
#mediaGroup Source
mediaGroup :: forall a. String -> Props a
#noValidate Source
noValidate :: forall a. Boolean -> Props a
#placeholder Source
placeholder :: forall a. String -> Props a
#radioGroup Source
radioGroup :: forall a. String -> Props a
#spellCheck Source
spellCheck :: forall a. Boolean -> Props a
#autoCapitalize Source
autoCapitalize :: forall a. String -> Props a
#autoCorrect Source
autoCorrect :: forall a. String -> Props a
#unselectable Source
unselectable :: forall a. Boolean -> Props a
#suppressContentEditableWarning Source
suppressContentEditableWarning :: forall a. Boolean -> Props a
#fillOpacity Source
fillOpacity :: forall a. Int -> Props a
#strokeWidth Source
strokeWidth :: forall a. Int -> Props a