Spaces:
Running
Running
add fungidb links
Browse files
app.py
CHANGED
@@ -58,7 +58,18 @@ with col2:
|
|
58 |
######### Table #########
|
59 |
|
60 |
fungidb_link_renderer = JsCode("""
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|