JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 585
  • Score
    100M100P100Q112326F
  • License MIT

Vue adapter (Vue Version 3) for csvbox.io

Package Exports

  • @csvbox/vuejs3
  • @csvbox/vuejs3/dist/vue-adapter-v3.esm.js
  • @csvbox/vuejs3/dist/vue-adapter-v3.ssr.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@csvbox/vuejs3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@csvbox/vuejs3

Vue adapter for csvbox.io

NPM JavaScript Style Guide

Shell

npm install @csvbox/vuejs3

Usage

<template>
  <div>
    <CSVBoxButton
      :licenseKey="licenseKey"
      :user="user"      
      :onImport="onImport">
      Upload File
    </CSVBoxButton>
  </div>
</template>

<script>
import CSVBoxButton from '@csvbox/vuejs3';

export default {
  name: 'App',
  components: {
    CSVBoxButton,
  },
  data: () => ({
    licenseKey: 'Sheet license key',
    user: {
      user_id: 'default123',
    },
  }),
  methods: {    
    onImport: function (result, data) {    
       if(result) {
          console.log("success");
          console.log(data.row_success + " rows uploaded");
          //custom code
      } else {
          console.log("fail");
          //custom code
      }
    }
  }
}
</script>

Readme

For usage see the guide here - https://help.csvbox.io/getting-started#2-install-code

License

MIT © csvbox-io