JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://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://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>
<table id="grid"></table>
<br />
<input type="button" id="buttonDataBind" value="Databind"></input>
JavaScript
$(function () {
$("#grid").igGrid({
primaryKey: "EmployeeID",
width: '100%',
defaultColumnWidth: "15%",
columns: [
{ headerText: "Employee ID", key: "EmployeeID", dataType: "number" },
{ headerText: "First Name", key: "FirstName", dataType: "string" },
{ headerText: "Last Name", key: "LastName", dataType: "string" },
{ headerText: "Birth Date", key: "BirthDate", dataType: "date" },
{ headerText: "City", key: "City", dataType: "string" },
{ headerText: "Country", key: "Country", dataType: "string" }
],
autofitLastColumn: false,
autoGenerateColumns: false,
dataSource: northwind,
responseDataKey: "results",
features: [
{
name: "Sorting",
type: "local",
mode: "multi",
persist: true
},
{
name: "Filtering",
type: "local",
persist: true
},
{
name: "GroupBy",
type: "local",
persist: true
},
{
name: "Selection",
mode: 'row',
multipleSelection: true,
persist: true
},
{
name: "RowSelectors",
enableCheckBoxes: true
},
{
name: "Paging",
type: "local",
pageSize: 5
}
]
} );
...