Code Monkey home page Code Monkey logo

ember-cli-hellosign's Introduction

HelloSign for Ember

Code Climate Build Status Ember Observer

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!

ember-cli-hellosign's People

Contributors

ember-tomster avatar he9qi avatar tiffanyli 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.