JSFiddle - React, Tailwind, and code Playground

by Yuriy Bablyukh

HTML

<script src="http://localhost:8080/jasperserver-pro/client/visualize.js?_showInputControls=true"></script>

<div id="container"></div>

CSS

html, body, #container {
    height: 100%;
    width: 100%;
    margin: 0;
}

JavaScript

visualize({
    auth: {
        name: "superuser",
        password: "superuser"
    }
}, function (v) {

    var dashboard = v.dashboard({
        resource: "/public/Dashboards/Dashboard_with_controls",
        container: "#container",
        error: function(e) {
            alert(e);
        }
    });
    
});