jberall/yii2-signature-draw

Renders a Signature Pad using jSignature

Installs: 1 713

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 7

Open Issues: 4

Language:JavaScript

Type:yii2-extension

dev-master 2017-03-09 00:08 UTC

This package is not auto-updated.

Last update: 2024-04-27 23:37:09 UTC


README

Renders a Signature Pad using jSignature

Installation

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.

Usage

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.