DmitrMakeev
commited on
Update data_gc_tab.html
Browse files- data_gc_tab.html +8 -0
data_gc_tab.html
CHANGED
@@ -99,6 +99,14 @@
|
|
99 |
.then(response => response.json())
|
100 |
.then(data => {
|
101 |
console.log('Data received:', data); // Логирование данных
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
var table = new Tabulator("#example-table", {
|
103 |
data: data, // set table data
|
104 |
layout: "fitColumns", // fit columns to width of table
|
|
|
99 |
.then(response => response.json())
|
100 |
.then(data => {
|
101 |
console.log('Data received:', data); // Логирование данных
|
102 |
+
|
103 |
+
// Пользовательский форматтер для ссылки на куратора
|
104 |
+
var linkFormatter = function(cell, formatterParams, onRendered) {
|
105 |
+
var curator = cell.getValue();
|
106 |
+
var curatorLink = cell.getData().curator_link;
|
107 |
+
return `<a href="${curatorLink}" target="_blank">${curator}</a>`;
|
108 |
+
};
|
109 |
+
|
110 |
var table = new Tabulator("#example-table", {
|
111 |
data: data, // set table data
|
112 |
layout: "fitColumns", // fit columns to width of table
|