JSFiddle - React, Tailwind, and code Playground
by jimkennelly
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.css">
<link rel="stylesheet" href="https://rawgit.com/wenzhixin/bootstrap-table/master/dist/bootstrap-table.css">
<script src="https://rawgit.com/wenzhixin/bootstrap-table/master/dist/bootstrap-table.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.1/bootstrap3-editable/css/bootstrap-editable.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.js"></script>
<script src="https://rawgit.com/wenzhixin/bootstrap-table/master/dist/extensions/editable/bootstrap-table-editable.js"></script>
<table class="table table-striped table-bordered table-hover" cellspacing="0" id="mainTable" data-click-to-select="true" data-show-toggle="true" data-show-columns="true" data-search="true" data-pagination="true">
<thead>
<tr>
<th data-field="name" data-halign="center" data-align="left" data-sortable="true">Name</th>
<th data-field="stargazers_count" data-halign="center" data-align="left" data-sortable="true">Stars</th>
<th data-field="forks_count" data-halign="center" data-align="left" data-sortable="true" data-editable="true">Forks</th>
<th data-field="description" data-halign="center" data-align="left" data-sortable="true" data-editable="true">Description</th>
</tr>
</thead>
</table>
JavaScript
$.fn.editable.defaults.mode = 'inline';
var data = [{name: 'John', stargazers_count: 232, forks_count: 214, description: "{x:5,y:6}"},
{name: 'Craig', stargazers_count: 234, forks_count: 224, description: "{x:5,y:6}"},
{name: 'Barry', stargazers_count: 238, forks_count: 234, description: "{x:5,y:6}"}]
$('table').bootstrapTable({
data: data,
sortable: true,
editable: true
});