abadi199/elm-creditcard/7.0.0

NOTE: this package is not compatible with Elm 0.19.1

CreditCard.Events

Helpers function for all events related to focus/blur of CCV field for card flipping effects. See examples in the demo folder of the git repo for some example on how to use this module.

Events

updateCCVFocus : Bool -> CardData model -> CardData model

Helper function to update the focus state of the ccv field in the internal state

onCCVFocus : (State -> msg) -> CardData model -> Attribute msg

onFocus event for the CCV field. This will update the focus state of the ccv field to True in the internal state

onCCVBlur : (State -> msg) -> CardData model -> Attribute msg

onBlur event for the CCV field. This will update the focus state of the ccv field to False in the internal state