Getting an error SignaturePad not defined while invoking the signature functionality.
These are the below steps i followed.
Installed Signature Pad Library using npm install --save signature_pad
Created lib folder in src/js/lib and paste the signature_pad.js and signature_pad.min.js files
Specified the path in the path_mapping.json and main.js(requirejs.config and require[])
var wrapper1 = document.getElementById("signaturepad1"),
canvas = wrapper1.querySelector("canvas");
signaturePad1 = new SignaturePad(canvas);
<div id="signaturepad1" >
<div>
<canvas></canvas>
</div> </div>
Could you please help me on it.