JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/icon.css">
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script src="http://www.jeasyui.com/easyui/datagrid-detailview.js"></script>
<script src="http://www.jeasyui.com/easyui/plugins/jquery.datagrid.js"></script>
<div style="width:500px;height:500px;">
<table id="LABEL_14429ec4362" ></table>
</div>
JavaScript
$('#LABEL_14429ec4362').datagrid({
data: [{"OID":"3652351","LABEL":"LABEL1","LABEL2":"LABEL2","LABEL3":"LABEL3","LABEL4":"LABEL4","LABEL5":"LABEL5","LABEL6":"LABEL6","LABEL7":"LABEL7","LABEL8":"LABEL8","LABEL9":"LABEL9","LABEL10":"LABEL10"}],
fit: true,
fitColumns: true,
nowrap: true,
view: detailview,
detailFormatter: function(index, row) {
return "<div>Some text here which is overly long and would normaly take up all the space up to the right. Some text here which is overly long and would normaly take up all the space up to the right. Some text here which is overly long and would normaly take up all the space up to the right. Some text here which is overly long and would normaly take up all the space up to the right.</div>";
},
columns:[ [
{
title: 'Style',
field:'LABEL10'
},
{
title: 'Style',
field:'LABEL'
},
{
title: 'Style',
field:'LABEL2'
},
{
title: 'Style',
field:'LABEL3'
},
{
title: 'Style',
field:'LABEL4'
},
{
title: 'Style',
field:'LABEL5'
},
{
title: 'Style',
field:'LABEL6'
},
{
title: 'Style',
field:'LABEL7'
},
{
title: 'Style',
...