Module

Concur.Core.Props

Package
purescript-concur-core
Repository
purescript-concur/purescript-concur-core

#Props Source

data Props p a

Constructors

Instances

#mkProp Source

mkProp :: forall a p. (a -> Effect Unit) -> Props p a -> p

Internal. Do not use. Use unsafeMkProp, or unsafeMkPropHandler instead.

#handleProp Source

handleProp :: forall b a p. (a -> Effect Unit) -> Props p a -> Props p b

Use handleProp to handle an event manually

#filterProp Source

filterProp :: forall a p. (a -> Boolean) -> Props p a -> Props p a

Use this to filter the output of an event handler prop. For example, to only handle the enter key - filterProp isEnterEvent onKeyDown