JSFiddle - React, Tailwind, and code Playground
by vysohanych
HTML
<script src="http://localhost:8080/jasperserver-pro/client/visualize.js"></script>
<div id="container"></div>
CSS
#container {
height: 450px;
width: 500px;
border: 1px solid black;
}
JavaScript
visualize({
auth: {
name: "superuser",
password: "superuser"
}
}, function (v) {
var ahv = v.adhocView({
resource: "/public/Ad_Hoc_View_2708_05",
container: "#container",
autoresize: false,
error: function(e) {
console.log(e);
}
});
$("#container").resizable({
resize: function( event, ui ) {
ahv.resize();
}
});
});