Skip to content
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.
function onShow(firstShow, event) {
	elements.pad.init({ })
}

//when you want to save the signature, create a simple handler:
function onAction$save(event) {
var data = elements.pad.getDataUrl("image/png")
//data contains a base64 string of the signature.
}

Clone this wiki locally