User:Serkan/test2/known1: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
$('#example').dataTable( { | $('#example').dataTable( { | ||
"aaData": [ | "aaData": [ | ||
{"0":"HOCOMOCO | {"0":"HOCOMOCO:ZFHX3_f1"}, | ||
{"0":"HOCOMOCO | {"0":"HOCOMOCO:ARI3A_f1}, | ||
{"0":"HOCOMOCO | {"0":"HOCOMOCO:HXD9_f1"}, | ||
{"0":"HOCOMOCO | {"0":"HOCOMOCO:PDX1_do}, | ||
{"0":"HOCOMOCO | {"0":"HOCOMOCO:HXD4_f1"}, | ||
{"0":"HOCOMOCO | {"0":"HOCOMOCO:HXC8_f1"}, | ||
{"0":"HOCOMOCO | {"0":"HOCOMOCO:LHX3_f1"}, | ||
{"0":"JASPAR | {"0":"JASPAR:Nobox;MA0125.1"}, | ||
{"0":"JASPAR | {"0":"JASPAR:Nkx2-5"} | ||
], | ], | ||
"aoColumns": [ | "aoColumns": [ | ||
{ "sTitle": "motif type"," | { "sTitle": "motif type","fnRender": function(obj) { | ||
var sReturn = obj.aData[ obj.iDataColumn ]; | |||
sReturn = "<b>sReturn.split(":")</b>"; | |||
return sReturn; | |||
} | |||
}, | |||
{ "sTitle": "motif name", "mRender": function ( data, type, full ) { | { "sTitle": "motif name", "mRender": function ( data, type, full ) { | ||
return '<a href=/resource_browser/User:Serkan/test2/'+data+'>'+data+'</a>';} }, | return '<a href=/resource_browser/User:Serkan/test2/'+data+'>'+data+'</a>';} }, |
Revision as of 11:49, 15 April 2013