onFinish callback
Closed this issue · 1 comments
ChaerilM commented
can we add onFinish callback, so i could do validation cleanly.
maybe like:
function validate() {
...
}
const enchanter = new Enchanter('js-form-wizard', {}, {
onNext: () => {
console.log('next');
return validate();
},
onFinish: () => {
console.log('finish');
return validate();
}
});
brunnopleffken commented
Thank you for your contribution. Merged!