You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tuan Nguyen edited this page Jan 15, 2019
·
8 revisions
Welcome to the svySignature wiki!
This wiki provides comprehensive documentation for using the svySignature web-component, which allows you to create a signature within Servoy's NGClient.
Getting Started
First import the component using one of the release binaries or via Servoy's Web Package Manager.
If you would like to see the component in an example install the included solution, svySignatureExample.servoy.
Example Usage
First add the component to a form by dragging it into the form using the Palette Wizard. It should be under svySignature (pad).
//Start by initializing the signature object. The onShow event will be used here to initialize when the form is displayed.functiononShow(firstShow,event){elements.pad.init({})}//when you want to save the signature, create a simple handler:functiononAction$save(event){vardata=elements.pad.getDataUrl("image/png")//data contains a base64 string of the signature.}