Skip to content

alejandrolorefice/yii2-signature-draw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jSignature Draw

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.1%
  • PHP 13.9%