openlink / html5pivotviewer

The HTML5 PivotViewer is a fork of a project that was started by LobsterPot Solutions as a cross browser, cross platform version of the Silverlight PivotViewer control produced by Microsoft. The control was written as a jQuery plug-in and utilises features available in HTML5.
Other
115 stars 79 forks source link

Two pivotviewer in the same page #25

Open eparini opened 10 years ago

eparini commented 10 years ago

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

JacquiHand commented 10 years ago

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

eparini commented 10 years ago

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