Fill footable table with JSON

0

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>
    
asked by afar1793 12.01.2018 в 23:08
source

0 answers