Files
DefinitelyTyped/jquery.jsignature/jquery.jsignature-tests.ts
Patrick Magee a6ecbeddae Added definitions for JQuery plugin jSignature
Definitions for jSignature jQuery plugin including tests for
definitionss.

Included are some documentation on the typed definition functions making
use of JDocs TypeScript support.

Updated the readme to include the new Typed Definition.
Included empty tscparams files to be consistent with other definitions
in the project.
2014-03-06 15:21:53 +00:00

19 lines
395 B
TypeScript

/// <reference path='../jquery/jquery.d.ts'/>
/// <reference path='jquery.jsignature.d.ts'/>
/*
* Taken from the tests section on jSignature
*/
$(document).ready(function () {
var $sigdiv = $('#signature');
$sigdiv.jSignature();
$sigdiv.jSignature("reset");
var data = $sigdiv.jSignature("getData", "svgbase64");
$sigdiv.jSignature("setData", "data:" + data);
});