edit-table.js 608 B

1234567891011121314151617181920212223242526
  1. $(document).ready(function() {
  2. // Basic example
  3. var example1 = new BSTable("basic-edit");
  4. example1.init();
  5. // New row edit-table example
  6. var example2 = new BSTable("new-edit", {
  7. $addButton: $('#table2-new-row-button'),
  8. onEdit:function() {
  9. console.log("EDITED");
  10. },
  11. });
  12. example2.init();
  13. // Example only some columns editable & removed actions column label
  14. var example3 = new BSTable("removecolumns-edit", {
  15. editableColumns:"1,2",
  16. advanced: {
  17. columnLabel: ''
  18. }
  19. });
  20. example3.init();
  21. } );