JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://jp.igniteui.com/js/modernizr.min.js"></script>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.core.js"></script>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.lob.js"></script>
<script src="https://jp.igniteui.com/js-data/northwind"></script>
<link href="https://cdn-na.infragistics.com/igniteui/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet"></link>
<link href="https://cdn-na.infragistics.com/igniteui/latest/css/structure/infragistics.css" rel="stylesheet"></link>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/i18n/infragistics-ja.js"></script>
<table id="hierarchicalGrid"></table>
JavaScript
$(function () {
$("#hierarchicalGrid").igHierarchicalGrid({
width: "100%",
autoGenerateColumns: false,
dataSource: northwind,
responseDataKey: "results",
dataSourceType: "json",
caption: "従業員の注文",
features: [
{
name: "Responsive",
enableVerticalRendering: false,
columnSettings: [
{
columnKey: "Title",
classes: "ui-hidden-phone"
},
{
columnKey: "Address",
classes: "ui-hidden-phone"
}
]
},
{
name: "Sorting",
inherit: true
},
{
name: "Paging",
pageSize: 5,
type: "local",
inherit: true
}
],
columns: [
{ key: "EmployeeID", headerText: "社員 ID", dataType: "number", width: "0%", hidden: true },
{ key: "FirstName", headerText: "名前", dataType: "string", width: "20%" },
{ key: "LastName", headerText: "名字", dataType: "string", width: "20%" },
{ key: "Title", headerText: "役職", dataType: "string", width: "20%" },
{ key: "Address", headerText: "住所", dataType: "string", width: "25%" },
{ key: "City", headerText: "市/州", dataType: "string", width: "15%" }
],
autoGenerateLayouts: false,
columnLayouts: [
{
key: "Orders",
...