8000 GitHub - tiffanyli/ember-cli-hellosign: HelloSign for Ember
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tiffanyli/ember-cli-hellosign

 
 

Repository files navigation

HelloSign for Ember

Code Climate Build Status

This Ember CLI addon provides a component for adding HelloSign's Embedded Signing functionality to your app. See https://www.hellosign.com/api/embeddedSigningWalkthrough

hellosign

Installation

ember install ember-cli-hellosign

Setup

Add your HelloSign publishable key to your app's config

// config/environment.js
ENV.HelloSign = {
  key: "abc"
};

Usage

Basic Usage

{{hello-sign
  url=signUrl
}}

Heavier Usage

{{hello-sign
  url=signUrl
  allowCancel=false
  debug=true
  skipDomainVerification=true
  height=320
}}

TODO: container

Actions

  • onEventSigned
  • onEventCanceled
  • onEventError
  • onEventInvalid
{{hello-sign
  url=signUrl
  onEventInvalid='onEventInvalid'
  onEventCanceled='onEventCanceled'
  onEventError='onEventError'
  onEventSigned='onEventSigned'}}
import Ember from 'ember';

export default Ember.Controller.extend({
  actions: {
    /**
     * Calls when user signs document.
     */
    onEventSigned: function(data) {
      // Do stuff after user signs.
      // Data:
      // {
      //  signature_id: "63b15d34dad8331f14e3f0d061f6",
      //  event:  "signature_request_signed"
      // }
    },

    /**
     * Calls when user closes/cancels document.
     */
    onEventCanceled: function() {
      // Do stuff
    },

    /**
     * Calls when there's invalid response.
     */
    onEventInvalid: function() {
      // Do stuff
    },

    /**
     * Calls when there's error response.
     */
    onEventError: function(data) {
      // Do stuff
    }
  }
});

Contributing

PRs welcome!

About

HelloSign for Ember

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.6%
  • HTML 13.9%
  • Handlebars 2.5%
0