How do I add the button "Save" from this example?
http://datatables.net/release-datatables/extras/TableTools/bootstrap.html
I've tried to add it, but I don't know how to do it, I want to add the button to my current table.
Here's my current code:
http://datatables.net/release-datatables/extras/TableTools/bootstrap.html
I've tried to add it, but I don't know how to do it, I want to add the button to my current table.
Here's my current code:
<script type="text/javascript" charset="utf-8" id="init-code"> var editor; // use a global for the submit and return data rendering in the examples $(document).ready(function() { editor = new $.fn.dataTable.Editor( { "ajaxUrl": "php/browsers.php", "domTable": "#example", "fields": [ { "label": "Nome", "name": "nome", "type": "text" }, { "label": "Email", "name": "email", "type": "text" }, { "label": "Administrador", "name": "administrador", "type": "select", "ipOpts": [ { "label": "Sim", "value": "Sim" }, { "label": "N\u00e3o", "value": "N\u00e3o" } ] }, { "label": "Senha", "name": "senha", "type": "password" } ] } ); $('#example').dataTable( { "sDom": "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", "sAjaxSource": "php/browsers.php", "aoColumns": [ { "mData": "nome" }, { "mData": "email" }, { "mData": "administrador" } ], "oTableTools": { "sRowSelect": "multi", "aButtons": [ { "sExtends": "editor_create", "editor": editor }, { "sExtends": "editor_edit", "editor": editor }, { "sExtends": "editor_remove", "editor": editor } ] } } ); } ); </script>