html5pivotviewer icon indicating copy to clipboard operation
html5pivotviewer copied to clipboard

Two pivotviewer in the same page

Open eparini opened this issue 11 years ago • 2 comments

Hello, is possible to run two instances of pivotviewer in the same page? I have:

-Controller1.js: declare var PivotViewer: any; ('#pv1').PivotViewer({ ... });

-Controller2.js: declare var PivotViewer: any; ('#pv2').PivotViewer({ ... });

There are no error and a blank page with only pv header is shown. Is there a way to make it working?

Thankyou in advance

eparini avatar Jun 13 '14 12:06 eparini

Hi lelezeus88,

This is not something that I have tried with the control before. I have just done a quick test and it does not work at the moment.

Jacqui

JacquiHand avatar Jun 13 '14 15:06 JacquiHand

Thankyou for your quick reply. I solve this problem cloning the pivotviewer.JS file and changing: -the name of the initial global var -methods exposed to jquery -the publish\subscribe\unsubscribe methods name I don't think that this is a good code practice but it works. If you find another way let me know. Thankyou in advance

eparini avatar Jun 13 '14 16:06 eparini