mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
40 lines
988 B
TypeScript
40 lines
988 B
TypeScript
import { HelloSign } from 'hellosign-embedded';
|
|
|
|
HelloSign.init('abc123');
|
|
|
|
// some options
|
|
HelloSign.open({
|
|
url: 'http://example.org',
|
|
messageListener: (e: HelloSign.MessageEvent) => {
|
|
if (e.event === HelloSign.EVENT_SIGNED) {
|
|
console.log('signed');
|
|
}
|
|
},
|
|
uxVersion: 2
|
|
});
|
|
|
|
// all options
|
|
HelloSign.open({
|
|
url: 'http://example.org',
|
|
redirectUrl: 'https://github.com/DefinitelyTyped/DefinitelyTyped',
|
|
allowCancel: true,
|
|
messageListener: (e: HelloSign.MessageEvent) => {
|
|
if (e.event === HelloSign.EVENT_SIGNED) {
|
|
console.log('signed');
|
|
}
|
|
},
|
|
userCulture: HelloSign.CULTURES.EN_US,
|
|
debug: true,
|
|
skipDomainVerification: true,
|
|
container: document.getElementById('#hellosign-container'),
|
|
height: 1326,
|
|
hideHeader: true,
|
|
uxVersion: 2,
|
|
requester: 'hellosign@example.org',
|
|
whiteLabelingOptions: {
|
|
"page_background_color": "#f7f8f9"
|
|
}
|
|
});
|
|
|
|
HelloSign.close();
|