Git Product home page Git Product logo

bootstable's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstable's Issues

Using stickyTableHeaders with bootstable.js

stickyTableHeaders is very useful for tables with a lot of rows. There is, however, a problem when using it with bootstable.js: when you add a new line, it is twice long as expected. This comes from stickyTableHeaders which doubles the first header row.
The solution is simple, just add a single line to the rowAddNew( ) function in bootstable.js:
if ($(this).attr('name')=='buttons') {
//Es columna de botones
htmlDat = htmlDat + colEdicHtml; //aggregate botones
return false;// <=Add this line to break the loop, this does not interfere with the script even if we do not use stickyTableHeaders
} else {

Adding row not showing editable inputs

Creating a button and then adding $addButton: $('#but_add') to the params does work well when creating a new row. But shouldn't it transfer the new (now empty) row into input boxes directly?

Get Content of Deleted Row Inside onDelete Function

Hi there!

I've been using your library to extend the functionality of a table on my website. I figured out how to get the content of a row when a row is edited:

     onEdit: function(columnsEd) {   
          var orgName = columnsEd[0].childNodes[0].innerHTML;
          var contact = columnsEd[0].childNodes[1].innerHTML;
          var number = columnsEd[0].childNodes[2].innerHTML;
          var email = columnsEd[0].childNodes[3].innerHTML;
          var notes = columnsEd[0].childNodes[4].innerHTML;
          editOrg(orgName, contact, number, email, notes);
     }

But, I can't figure out how to get the content of a row when the onDelete function is called:

     onDelete: function() {
            // somehow get content of deleted row
      }

Any help would be appreciated! Thanks.

Is posible get data and send to json object ?

Hi Very nice Job congratulations ¡¡¡¡

I like to use your bootstable.min.js code. But i have one doubt , bootstrap-table.min.js have a function to get all the values in a table, and then can send all the values to a json object ($table.bootstrapTable('getData') ), its posible do a similar function compatible with your code ?

 $Guardadatos.click(function () {
  	 // alert(JSON.stringify($table.bootstrapTable('getData')));
  	  var datos = JSON.stringify($table.bootstrapTable('getData'));
  	  //var obj=JSON.parse(datos);
        var obj = jQuery.parseJSON(datos);
        console.log(obj);
        
    });

Thanks

TableToCSV

I'm struggling with the feedback of the function TableToCSV not returning the value to the variable.
Syntax in the HTML file looks like :

$List = ""
...
$List = TableToCSV('table-list',',')

but $List remains empty. Any suggestion if the call of the function needs to be changed ?

Table is not working with toggle menu

Also, there is a type error in safari browser.

TypeError: params.$addColButton.click is not a function. (In 'params.$addColButton.click(function() {
rowAddNewCol($tabedi.attr("id"));
})', 'params.$addColButton.click' is undefined)

Duplicate buttons on each row

I have an issue when using bootstable, the edit and delete buttons are appearing twice on each row.
See image below.

bootstable issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.