JSFiddle - React, Tailwind, and code Playground

by vitaliest

HTML

<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="https://jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/generatedata.js"></script>
<div  style="margin-bottom: 20px; width: 100%">
<select style="width: 30%">
  <option>A</option>
  <option>B</option>
</select>
</div>


<div id='jqxWidget'>
    <div id="jqxgrid"></div>
</div>

    <div id="jqxTabs">
        <ul>
            <li>First</li>
            <li>Second </li>
        </ul>
        <div style="overflow: hidden;" id="jqxFirst">
        </div>
        <div style="overflow: hidden;" id="jqxSecond">
        </div>
    </div>

JavaScript

var data = generatedata(10);
 var source = {
     localdata: data,
     datafields: [{
         name: 'firstname',
         type: 'string'
     }, {
         name: 'lastname',
         type: 'string'
     }, {
         name: 'productname',
         type: 'string'
     }, {
         name: 'date',
         type: 'date'
     }, {
         name: 'quantity',
         type: 'number'
     }, {
         name: 'price',
         type: 'number'
     }],
     datatype: "array"
 };

 var adapter = new $.jqx.dataAdapter(source);
 		var initGrid = function(id){
     $(id).jqxGrid({
     width: '100%',
     theme: 'energyblue',
     filterable: true,
     showfilterrow: true,
     source: adapter,
     columns: [{
         text: 'First Name',
         datafield: 'firstname',
         columngroup: 'Name',
         width: 90
     }, {
         text: 'Last Name',
         columngroup: 'Name',
         datafield: 'lastname',
         width: 90
     }, {
         text: 'Product',
         datafield: 'productname',
         width: 170
     }, {
         text: 'Order Date',
         datafield: 'date',
         width: 160,
         cellsformat: 'dd-MMMM-yyyy'
     }, {
         text: 'Quantity',
         datafield: 'quantity',
         width: 80,
         cellsalign: 'right'
     }, {
         text: 'Unit Price',
         datafield: 'price',
         cellsalign: 'right',
         cellsformat: 'c2'
     }],
     columngroups: [{
         text: 'Name',
         name: 'Name',
         align: 'center'
     }]
 });
    }
 
 initGrid("#jqxFirst"); 
 initGrid("#jqxSecond");

     /* Initialize tabs  */
    var initTab = function(tab) {
        switch (tab) {
        case 0:
            break;
        case 1:
            break;

        }
    };
 
     $("#jqxTabs").jqxTabs({
        width: "98%",
        height: "83%",
        // autoHeight: true,
        position: "top",
        selectionTracker: true,
        theme: "Arctic",
       initTabContent: initTab,
        enableScrollAnimation:...