Bootstrap Table

by jimkennelly

HTML

<link rel="stylesheet" href="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.css">
<script src="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.js"></script>
<table id="table">
    <thead>
    <tr>
        <th data-field="name">Name</th>
        <th data-field="stargazers_count">Stars</th>
        <th data-formatter="forksFormatter" data-field="forks_count">Forks</th>
             <th data-field="emails">mail</th>
        
    </tr>
    </thead>
</table>

JavaScript

var data = [
    {
        "name": "bootstrap-table",
        "stargazers_count": "526",
        "forks_count": "122",
        "description": "An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3) ",
        "emails":["[email protected]","[email protected]"]
        
    },

];

$(function () {
    $('#table').bootstrapTable({
        data: data
    });
});
function formatE(value,row,index){
return 'test';

//return value.split(",").join("<br>");
}
function forksFormatter(value) {
    return '<i class="glyphicon glyphicon-cutlery"></i> ' + value;
}