Module

Concur.Core.Props

#Props

data Props p a

Constructors

Instances

#mkProp

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

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

#handleProp

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

Use handleProp to handle an event manually

#filterProp

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

Modules