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 p a. (a -> Effect Unit) -> Props p a -> p

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

#handleProp Source

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

Use handleProp to handle an event manually

#filterProp Source

filterProp :: forall p a. (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