We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

How to use Methods by using vue-flexmonster

Resolved
moai asked on January 31, 2020

I'm using vue-flexmonster with local registration.
How can I use Methods on this page?
https://www.flexmonster.com/api/methods/

1 answer

Public
Vera Didenko Vera Didenko Flexmonster January 31, 2020

Hello,  
 
Thank you for writing to us. 
 
The Flexmonster API calls can be used the following way:  

  1. Create a reference to the Flexmonster instance: 
    <Pivot 
      ref="pivot" 
      … 
    ></Pivot>

    Please see line 5 in our sample on GitHub for reference.

  2. Now the Flexmonster API calls can be accessed through the reference.
    For example, the alert() method can be called the following way:

    this.$refs.pivot.flexmonster.alert({ 
    title: "Flexmonster Pivot Table and Charts", 
    message: "Welcome!", 
    type: "info", 
    blocking: false 
    }); 

    Please see line 110 in our sample on GitHub for reference.

Also, we kindly recommend checking out our sample Vue CLI project on GitHub.
 
 
Please let us know if this helps.
 
 
Kind regards, 
Vera 

Please login or Register to Submit Answer