Good afternoon, I'm trying to fill a table with JSON, the table is class footable, but I do not see the data in the table, this is my code:
$('#tUsuarios').footable({
rows:[{"Email":"[email protected]","PrimerNombre":"Andres","Rol":"Administrador"}],
columns:[
{"data":"", "name":""},
{"data":"Email", "name":"Email"},
{"data":"PrimerNombre", "name":"Primer Nombre"},
{"data":"Rol", "name":"Rol"}
]
});
<table class="footable table table-stripped" data-page-size="3" id="tUsuarios">
<thead>
<tr>
<th>
<input type="checkbox" name="select_all" value="1" id="example-select-all">
</th>
<th>Correo</th>
<th>Nombre</th>
<th>Rol</th>
</tr>
</thead>
</table>