HelloSign for Ember
This Ember CLI addon provides a component for adding HelloSign's Embedded Signing functionality to your app. See https://www.hellosign.com/api/embeddedSigningWalkthrough
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
Heavier Usage
TODO: container
Actions
- onEventSigned
- onEventCanceled
- onEventError
- onEventInvalid
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!