Skip to content

Instantly share code, notes, and snippets.

@LuffyAnshul
Last active May 15, 2021 14:55
Show Gist options
  • Save LuffyAnshul/adc1bdda9c491b04bdf8704ec9856d7d to your computer and use it in GitHub Desktop.
Save LuffyAnshul/adc1bdda9c491b04bdf8704ec9856d7d to your computer and use it in GitHub Desktop.
const _onSaveEvent = (result) => {
//result.encoded - for the base64 encoded png
//result.pathName - for the file path name
alert('Signature Captured Successfully');
console.log(result.encoded);
};
const _onDragEvent = () => {
// This callback will be called when the user enters signature
console.log('dragged');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment