how can I access cell data at render
how can I access cell data at render
webvision
Posts: 10Questions: 7Answers: 0
I would like to populate work order ID as part of a custom button.
columns: [
{ data: "id" },
{ data: "workorder_number" },
{ data: "workorder_date" },
{
data: null,
className: "center",
defaultContent: '<a href="index.cfm?wid=[cell content of id]">Edit</a>'
}
],
Can someone please point me in the right direction?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Have a look at using
columns.render
as a function which provides the ability to create dynamic content, whilecolumns.defaultContent
is for static content.Allan