Learn about the components which are available with Cashfree.js
Name | Description | Default |
---|---|---|
value | Contains the value of the component. | {} |
error | Contains error that has occurred in the component | undefined |
message | Contains any message that can be shown to the customer | {} |
invalid | Is true is the component is invalid | undefined |
empty | Is true if the component is empty | false |
complete | Is true if the component is complete | false |
ready | Is true if the component is ready for user input | false |
componentName | Contains the type of the component | componentName |
node | Contains the reference to the parent of the component | null |
mounted | Is true if the component has been mounted | false |
kind
of the component is input
kind
of the component is input
kind
of the component is input
kind
of the component is button
classes.disabled
and style.base[":disabled"]
or style.empty[":disabled"]
to the container and compoent respectively. Can be applied to input
and button
input
and button
component.on(eventName, callBackFunction)
kind
input
when focussed
kind
input
when blurred
kind
input
when value entered by the user is invalid. Callback receives object that has the error. Read more about error here
kind
input
whenever change happens for the value
kind
input
when empty
kind
input
when value entered is complete and valid
kind
button
when clicked