columns data value in href
columns data value in href
Hi,
I need put one link in href with the value of one variable(path_file).
"columns":[
{ "data": "id", "width": "5%" },
{
"data": "path_file",
"defaultContent": "<a href='path_file' class='btn btn-danger fa fa-pencil-square-o' alt='Open File'></a>",
}
]
The variable path_file can´t to be show in datatable column, the column will have the link that will redirect to the page with the variable value. How is the best way of make this?
This question has an accepted answers - jump to answer
Answers
Hi @fael_christofano ,
The best bet would to be
columns.render
for that - the fourth example on that page is similar to what you want,Cheers,
Colin
Perfect Colin...
Thanks