Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column button #233

Open
Fabryprog opened this issue Jan 5, 2016 · 1 comment
Open

Column button #233

Fabryprog opened this issue Jan 5, 2016 · 1 comment

Comments

@Fabryprog
Copy link

hello,

i want to put a button in a fixed column to every row.

How to do it?

@robinzetterstrom
Copy link

robinzetterstrom commented Apr 19, 2016

Hi Fabryprog

I see that you posted this issue on 5th of Jan but regardless, someone might find this useful. My way of solving that is by doing like this.

$.getJSON( "products.json", function( data ) {
      $.each( data, function( key, val ) {
        $("#products tbody").append("<tr><td>" + data[key].id + "</td><td>" + data[key].name + "</td><td><a class='btn btn-primary' href='product.php?show=" + data[key].id + "'>Edit</a></td></tr>");
      });
      $('#products').dynatable(...........);
  });

It's probably not the most efficient way of doing it but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants