1.0.1 • Published 4 years ago

vue-pitchprint v1.0.1

Weekly downloads
49
License
-
Repository
github
Last release
4 years ago

PitchPrint - VueJs

This is a PitchPrint component that can be easily used in your VueJS project. This component will display the PitchPrint editor on the page that you render the component.

Installation

npm install --save vue-pitchprint

How to use

Import the PitchPrint component:

import PitchPrint from 'vue-pitchprint'

Use the component

export default {
  name: 'App',
  components: {
	PitchPrint,
  },
  mounted() {
	this.$root.$on('pitchprint-project-saved', this.showPreview);
  },
  methods: {
	showPreview(data) {
		document.querySelector('.preview').innerHTML = `<img src="${data.previews[0]}"/>`;
	}
  }
}

Use the component in your template:

<template>
  <div id="app">
    <h1>Welcome to PitchPrint VueJS Demo App</h1>
    <PitchPrint apiKey="asf" designId="1234" langCode="en" display="modal" />
    <div class="preview"></div>
  </div>
</template>
	

Live Demo

https://vue.demo.pitchprint.io/

1.0.1

4 years ago

1.0.0

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago