JSPM

  • Created
  • Published
  • Downloads 22339
  • Score
    100M100P100Q145951F
  • License MIT

VueJS Module for Flexmonster Pivot Table & Charts

Package Exports

  • vue-flexmonster

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 (vue-flexmonster) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Vue module for Flexmonster Pivot Table & Charts

Flexmonster Pivot Table & Charts

This repository holds the source code for using Flexmonster Pivot in Vue applications.

Getting Started

If you don’t have Vue app, you can create it by running in the console:

vue create my-app
cd my-app

Add Flexmonster Vue module by running in the console:

npm i vue-flexmonster --save

Usage

The Flexmonster Vue module can be used as a plugin or locally.

1) Use Flexmonster Vue module as a Vue plugin

1.1) Add the following lines to the main.js file:

import Pivot from "vue-flexmonster";
import 'flexmonster/flexmonster.css';

Vue.use(Pivot);

2) Register Flexmonster Vue module locally:

2.1) Import vue-flexmonster in App.js:

import {Pivot} from "vue-flexmonster";
import 'flexmonster/flexmonster.css';

2.2) Add the module to the components property in App.js:

export default {
  name: 'app',
  components: {
    Pivot
  }
}

After defining as a plugin or local component, use the module in <template></template> in App.js:

<template>
  <div id="app">
     <Pivot
      ref="pivot"
      v-bind:report="https://cdn.flexmonster.com/reports/report.json"
    ></Pivot>
  </div>
</template>

Run your application from the console:

npm run serve

To see the result open your browser on http://localhost:8080/.

License

Here is Flexmonster licensing page. We have a free 30-day trial!

Flexmonster Vue module is released as an MIT-licensed add-on to Flexmonster Pivot.

Support & feedback

Please share your feedback or ask questions via Flexmonster Forum.