You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@grapecity/activereports-vue

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grapecity/activereports-vue

ActiveReportsJS components for Vue

1.2.0
npmnpm
Version published
Weekly downloads
179
68.87%
Maintainers
1
Weekly downloads
 
Created
Source

ActiveReportsJS Vue Wrapper

This package is a part of the ActiveReportsJS and provides vue wrapper for ARJS Viewer Component

Usage Example

  • Install Vue CLI using following command
npm install -g @vue/cli
  • Create new application and navigate to the application folder:
vue create arjs-vue -d
cd arjs-vue
  • Add reference to ActiveReportsJS Vue module:
npm install @grapecity/activereports-vue
  • Save the following module source code in src/App.vue:
<template>
    <div id="app" style="height: 100vh">
        <GcArViewer ref="control"/>
    </div>
</template>

<script>
    import Vue from 'vue';
    import { Viewer } from '@grapecity/activereports-vue';
    import '@grapecity/activereports/styles/ar-js-viewer.css';

    export default Vue.extend({
        name: 'app',
        components: {
            GcArViewer: Viewer
        },
        mounted(){
            this.getViewer().open({
                    "Name": "Report",
                    "Type": "report",
                    "Width": "9.7215in",
                    "Body": {
                    "Name": "Body",
                    "Type": "section",
                    ReportItems: [
                        { Type: "textbox", Name: "textbox1", Value: "Hello from ActiveReports", Height: "10in" }
                    ]
                    }
            });
        },
        methods: {
            getViewer() {
                return this.$refs.control;
            }
        }
    });
</script>
  • Start application
npm run serve

Documentation

For more information on how to use ActiveReportsJS and available tools, refer to the Documentation or API reference for guidance.

Keywords

vue

FAQs

Package last updated on 03 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.