@pulter/vuejs
v0.1.2
Published
Vue adapter for pulter
Downloads
3
Maintainers
Readme
@pulter/vuejs
Vue adapter for pulter.io
Shell
npm install @pulter/vuejs
Usage
<template>
<div>
<Pulter
:templateId="templateId"
:user="user"
:onSubmit="onSubmit"
/>
</div>
</template>
<script>
import { Pulter } from '@pulter/vuejs';
export default {
name: 'App',
components: {
Pulter,
},
data: () => ({
templateId: 'Data Template ID',
user: {
id: 'default123',
},
}),
methods: {
onSubmit: function (result, data) {
if(result) {
console.log("success");
console.log(data + " data uploaded");
//custom code
} else {
console.log("fail");
//custom code
}
}
}
}
</script>
Readme
For usage see the guide here - https://docs.pulter.co
License
MIT © pulter-co