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 | {"0":"HOCOMOCO","1":"ARI3A_f1"}, | ||
{ | {"0":"HOCOMOCO","1":"HXD9_f1"}, | ||
"0":"HOCOMOCO:ARI3A_f1"}, | {"0":"HOCOMOCO","1":"PDX1_do"}, | ||
{ | {"0":"HOCOMOCO","1":"HXD4_f1"}, | ||
"0":"HOCOMOCO:HXD9_f1"}, | {"0":"HOCOMOCO","1":"HXC8_f1"}, | ||
{ | {"0":"HOCOMOCO","1":"LHX3_f1"}, | ||
"0":"HOCOMOCO:PDX1_do"}, | {"0":"JASPAR","1":"Nobox;MA0125.1"}, | ||
{ | {"0":"JASPAR","1":"Nkx2-5"} | ||
"0":"HOCOMOCO:HXD4_f1"}, | |||
{ | |||
"0":"HOCOMOCO:HXC8_f1"}, | |||
{ | |||
"0":"HOCOMOCO:LHX3_f1"}, | |||
{ | |||
"0":"JASPAR:Nobox;MA0125.1"}, | |||
{ | |||
"0":"JASPAR:Nkx2-5"} | |||
], | ], | ||
"aoColumns": [ | "aoColumns": [ | ||
{ "sTitle": "motif type","mRender": function ( data, type, full ) { | { "sTitle": "motif type","mRender": function ( data, type, full ) { | ||
return data;}}, | return data[0];}}, | ||
{ "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[1]+'</a>';} } | ||
] | ] | ||
} ); | } ); |
Revision as of 11:34, 15 April 2013