maom commited on
Commit
9270882
·
verified ·
1 Parent(s): 6ffa8c0

add fungidb links

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -58,7 +58,18 @@ with col2:
58
  ######### Table #########
59
 
60
  fungidb_link_renderer = JsCode("""
61
- function(params) {return <a href="https://fungidb.org/fungidb/app/record/gene/${params.value}" target="_blank">${params.value}</a>}
 
 
 
 
 
 
 
 
 
 
 
62
  """)
63
 
64
 
 
58
  ######### Table #########
59
 
60
  fungidb_link_renderer = JsCode("""
61
+ class UrlCellRenderer {
62
+ init(params) {
63
+ this.eGui = document.createElement('a');
64
+ this.eGui.innerText = params.value;
65
+ this.eGui.setAttribute('href', "https://fungidb.org/fungidb/app/record/gene/${params.value}";
66
+ this.eGui.setAttribute('style', "text-decoration:none");
67
+ this.eGui.setAttribute('target', "_blank");
68
+ }
69
+ getGui() {
70
+ return this.eGui;
71
+ }
72
+ }
73
  """)
74
 
75