Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two pivotviewer in the same page #25

Open
eparini opened this issue Jun 13, 2014 · 2 comments
Open

Two pivotviewer in the same page #25

eparini opened this issue Jun 13, 2014 · 2 comments

Comments

@eparini
Copy link

eparini commented Jun 13, 2014

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
Copy link
Collaborator

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
Copy link
Author

eparini commented Jun 13, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants