Coder Social home page Coder Social logo

bluecitymoon / angular-schema-form-signature Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jamesguthrie/angular-schema-form-signature

0.0 2.0 0.0 5 KB

A signature pad field for angular schema form

License: MIT License

JavaScript 70.14% HTML 29.86%

angular-schema-form-signature's Introduction

Signature addon

This addon renders a signature pad in a form field, allowing someone to electronically enter their written signature. The resulting signature image is stored as a data URI in the model field.

Installation

The easiest way is to install is with bower, this will also include dependencies:

bower install angular-schema-form-signature

Usage

You will need to specify the signature dependency in your app definition, this is for the angular signature module.

angular.module('yourModule', ['schemaForm', 'signaure']);

The signature add-on adds a new form type, signature.

Form Type Becomes
signature a signature widget

Resulting Value

On submission, your model will contain a data URI representation of the signature which was input by the user.

Validation

The field will be valid as long as something has been entered. This prevents someone from not entering a signature.

Form Type Options

The signature form does not yet support any external options, but it will soon. If you would like an option to be present, open an issue or pull request for it.

Examples

Here's an example:

{
  key: 'signature',
  type: 'signature'
}

Development

Install dev dependencies:

npm install

Install project dependencies:

bower install

Run gulp to generate output:

gulp

angular-schema-form-signature's People

Contributors

jamesguthrie avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.