• This repository has been archived on 18/Nov/2019
  • Stars
    star
    105
  • Rank 328,196 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HTML5 canvas based smooth signature drawing as angularJS directive (http://szimek.github.io/signature_pad/)

This plugin only works for AngularJS 1.x

Angular Signature

Scrutinizer Code Quality

AngularJS directive for the signature pad JavaScript library by szimek.

In contrast to other AngularJS directives for szimek's signature pad, this directive does not apply any styling. The directive only places the canvas and allows you to bind your app to the signature pad by binding the functions in the scope of your controller. This means you can call them from your own (custom) buttons.

sign animation

Demo

An online demo of the directive can be found here.

Installation

Install this module using bower

bower install angular-signature --save

or install this module using npm

npm install angular-signature --save

Add the module to your app

angular.module('app', [
  'signature',
]);

Usage

Basics

<signature-pad accept="accept" clear="clear" height="220" width="568" disabled="false"></signature-pad>
<button ng-click="clear()">Clear signature</button>
<button ng-click="signature = accept()">Sign</button>

Bootstrap Modal

This plugin works well in a Angular UI Bootstrap Modal.

angular.module('app').controller('SignModalCtrl', [
  '$scope', '$modalInstance'
  function ($scope, $modalInstance) {
    $scope.done = function () {
      var signature = $scope.accept();

      if (signature.isEmpty) {
        $modalInstance.dismiss();
      } else {
        $modalInstance.close(signature.dataUrl);
      }
    };
  }
]);
<div class="modal-header">
    <h3 class="modal-title">Sign</h3>
</div>
<div class="modal-body">
    <signature-pad accept="accept" clear="clear"></signature-pad>
</div>
<div class="modal-footer">
    <button class="btn btn-default pull-left" ng-click="clear()">Clear signature</button>
    <button class="btn btn-default" ng-click="$dismiss()">Cancel</button>
    <button class="btn btn-primary" ng-click="done()">Sign</button>
</div>

More Repositories

1

angular-pdfjs-viewer

PDF.js viewer directive for AngularJS
JavaScript
138
star
2

pdf.js-viewer

Compiled version of pdf.js viewer, modified to run embedded
JavaScript
45
star
3

lambda-pdf-thumbnail

A lambda function to make a pdf uploaded to s3 bucket
JavaScript
26
star
4

cloudwatch-logger-php

CloudWatch logger for PHP
PHP
9
star
5

authorizer

PHP library for authorization using public key cryptography
PHP
7
star
6

legalfling.io

LegalFling website
CSS
6
star
7

lambda-csv-parser

Parse CSV with AWS lambda
JavaScript
5
star
8

legalform-js

JavaScript library to create a form from a LegalForm definition
JavaScript
5
star
9

livecontracts.io

JavaScript
4
star
10

table-of-contents-json

Generate a table of contents represented in a JSON structure based on HTML
JavaScript
4
star
11

docker-apache-php

Docker images to run a php app in apache
Dockerfile
3
star
12

elastic-beanstalk-environment.js

Set Elastic Beanstalk environment variables
JavaScript
3
star
13

data-enricher

Enrich objects by processing special properties (PHP)
PHP
3
star
14

angular-onlyoffice

(ABANDONED) Angular directive for embedding ONLYOFFICE
JavaScript
2
star
15

lt-nest-starter

Starter project for NestJs based services
TypeScript
2
star
16

lambda-rollbar-deploy

Notify Rollbar after Elastic Beanstalk deployment
JavaScript
2
star
17

web3-server

Interact with Ethereum Smart Contracts over HTTP
TypeScript
2
star
18

waves-php

PHP library for working with Waves
1
star
19

php-code-quality

PHP coding standard and toolset
1
star
20

authz

Authorization and access control (PHP)
PHP
1
star
21

mongodb-session-handler

A PHP session handler that stores structured data in MongoDB
PHP
1
star
22

legalform-wp-plugin

WordPress plugin for displaying a LegalForm
PHP
1
star
23

registration-z24

Registration and Login pages
HTML
1
star
24

angular-template-injection

Simple Angular service to inject a template.
JavaScript
1
star
25

lambda-document-merger

Lambda function to merge documents
JavaScript
1
star
26

document-merger-service

Service to merge html documents
JavaScript
1
star
27

letsflow.io

LetsFlow website
CSS
1
star