Friends I am having the following inconvenience, I try to load the data in a footable, I try to do it in the following way and it does not work for me:
$("#status").change(function () {
var respuesta=new String();
respuesta= "[{'id':'5629499534213120','Email':'[email protected]', 'cuenta':'fislatec', 'Nombre':'andres alba','Perfil':'Administrador', 'Estado':'Estados','Action':'Botones'}]";
$("#tUsuarios").footable({
"sorting": {
"enabled": true
},
"toggleSelector": ".footable-toggle",
"columns": [
{"name": "Nombre", "title": "Nombre"},
{"name": "id", "title": "id", "visible": false},
{"name": "Email", "title": "Email"},
{"name": "cuenta", "title": "cuenta", "visible": false},
{"name": "Perfil", "title": "Perfil"},
{"name": "Estado", "title": "Estado"},
{"name": "Action", "title": "Acción"}
],
'rows':respuesta
});
});
But this way if it works for me:
$("#status").change(function () {
$("#tUsuarios").footable({
"sorting": {
"enabled": true
},
"toggleSelector": ".footable-toggle",
"columns": [
{"name": "Nombre", "title": "Nombre"},
{"name": "id", "title": "id", "visible": false},
{"name": "Email", "title": "Email"},
{"name": "cuenta", "title": "cuenta", "visible": false},
{"name": "Perfil", "title": "Perfil"},
{"name": "Estado", "title": "Estado"},
{"name": "Action", "title": "Acción"}
],
'rows':[{'id':'5629499534213120','Email':'[email protected]', 'cuenta':'fislatec', 'Nombre':'andres alba','Perfil':'Administrador', 'Estado':'Estados','Action':'Botones'}]
});
});