JSFiddle - React, Tailwind, and code Playground
by planiurl
HTML
<link rel="stylesheet" href="https://s3.amazonaws.com/flexmonster/2.3/demo.css">
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<button onclick='logInstance(1)'>Log instance 1 to console</button>
<div id="pivot-container1"></div>
<button onclick='logInstance(2)'>Log instance 2 to console</button>
<div id="pivot-container2"></div>
JavaScript
function logInstance(instIndex) {
console.log($(`#pivot-container${instIndex}`).data("flexmonster"))
}
var pivot = $("#pivot-container1").flexmonster({
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: "https://cdn.flexmonster.com/reports/report.json"
});
var pivot2 = $("#pivot-container2").flexmonster({
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: "https://cdn.flexmonster.com/reports/report.json"
});