abadi199/elm-creditcard/8.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 CVV 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

updateCVVFocus : Bool -> CardData model -> CardData model

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

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

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

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

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