angular-signature

WebJar for angular-signature

Лицензия

Лицензия

MIT
Категории

Категории

Github Инструменты разработки Контроль версий Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

github-com-legalthings-angular-signature
Последняя версия

Последняя версия

1.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-signature
WebJar for angular-signature
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/legalthings/angular-signature

Скачать github-com-legalthings-angular-signature

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-legalthings-angular-signature/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-legalthings-angular-signature</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-legalthings-angular-signature/
implementation 'org.webjars.npm:github-com-legalthings-angular-signature:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-legalthings-angular-signature/
implementation ("org.webjars.npm:github-com-legalthings-angular-signature:1.0.3")
'org.webjars.npm:github-com-legalthings-angular-signature:jar:1.0.3'
<dependency org="org.webjars.npm" name="github-com-legalthings-angular-signature" rev="1.0.3">
  <artifact name="github-com-legalthings-angular-signature" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-legalthings-angular-signature', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "github-com-legalthings-angular-signature" % "1.0.3"
[org.webjars.npm/github-com-legalthings-angular-signature "1.0.3"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : signature_pad jar [1.5.0,2)

Модули Проекта

Данный проект не имеет модулей.

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>
org.webjars.npm

Legalthings

Home of fillthedoc, Proofi, LetsFlow and LTO Network (@ltonetwork)

Версии библиотеки

Версия
1.0.3