JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css">
<script src="http://isotope.metafizzy.co/jquery.isotope.min.js"></script>
<div id="wrapperDiv">
<div class="dialog-modal" title="Basic dialog">hello</div>
<div class="dialog-modal" title="Basic dialog">hello</div>
<div class="dialog-modal" title="Basic dialog">hello</div>
<div class="dialog-modal" title="Basic dialog">hello</div>
<div class="dialog-modal" title="Basic dialog">hello</div>
</div>
JavaScript
$(".dialog-modal").dialog({
resizable: true,
height: 140,
position: 'center',
dialogClass: 'console',
buttons: {
'Yes': function () {
$(this).dialog("close");
return true;
},
'No': function () {
$(this).dialog("close");
return false;
}
}
});
$('.console').appendTo('#wrapperDiv');
var $container = $('#wrapperDiv');
console.log($container);
$container.isotope({
filter : '*',
layoutMode : 'fitRows',
});