User:Hisa/tabletest: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
"aaData": aDataSet, | "aaData": aDataSet, | ||
"aoColumns": [ | "aoColumns": [ | ||
{ "sTitle": "FF sample ID" | { "sTitle": "FF sample ID", | ||
"fnRender": function(obj) { | |||
var id = obj.aData[ obj.iDataColumn ]; | |||
{ "sTitle": " | return sReturn = "<a href=\"/resource_browser/"+id+"\">"+id+"</a>"; | ||
} | |||
}, | |||
{ "sTitle": "Name","sWidth": "80%"}, | |||
] | ] | ||
} ); | } ); |
Revision as of 17:59, 2 May 2012