Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35272

Custom button to pass id field to custom function

$
0
0

I'm currently creating a custom button at render using the following code. It creates a per row inline link allowing me to pass a record id full.id to new page:

{
     "data": null,
     "render": function ( data, type, full, meta ) {
     return '<a href="index.cfm?image=1&cid=2&wid=2&did='+full.id+'">View</a>';
     }
}

How would I accomplish this same task using a custom toolbar button. I would like to customize a toolbar button to pass the "selected row" record id. Instead of using the custom inline method at render. The reason is the render method interferes with the 'responsive' class and breaks the responsive behavior.


Viewing all articles
Browse latest Browse all 35272

Trending Articles