Renders a Signature Pad using jSignature
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist jberall/yii2-signature-draw: "dev-master"
or add
"jberall/yii2-signature-draw": "dev-master"
to the require section of your composer.json
file.
composer update jberall/yii2-signature-draw will only update this file.
The js files are from brinley.github.io See demos here.
Once the extension is installed, simply use it in your code by :
Create a jSignature Canvas.
<?= \jberall\signaturedraw\SignatureDraw::widget(); ?>
You can use your own view file
<?= \jberall\signaturedraw\SignatureDraw::widget(['view'=>'\\pathto\file']); ?>
It is recommended to change your own file.
In the file under views/sdv.php
you can easily modify your .css, javascript and canvas options.