Add 2 buttons in the same cell
Add 2 buttons in the same cell
Demigoth
Posts: 1Questions: 1Answers: 0
So here is my problem, I generate data from a web api that returns a json object, lets say it does this...
{
"id" : "1g6th5lz3",
"name" : "John",
"position" : "CEO"
}
So I have a table that has 3 columns, Name, Position and Actions, the action is dependant on the id, something like this:
$(document).ready(function () { var table = $("#users").DataTable({ ajax: { url: "/api/users", dataSrc: "" }, columns: [ { data: "Name" }, { data: "Position" }, { data: "id, render: function (data) { return "Delete"; } }, ] }); });But when I try to add a second button with another render function, it show just the last one, I want to know if there is a way to add another button in the same cell.
This discussion has been closed.