DmitrMakeev
commited on
Update data_gc_tab.html
Browse files- data_gc_tab.html +5 -2
data_gc_tab.html
CHANGED
@@ -107,8 +107,11 @@
|
|
107 |
{title:"Имя", field:"name"},
|
108 |
{title:"Телефон", field:"phone"},
|
109 |
{title:"Email", field:"email"},
|
110 |
-
{title:"VK
|
111 |
-
|
|
|
|
|
|
|
112 |
var chatId = cell.getValue();
|
113 |
if (chatId.startsWith('@')) {
|
114 |
chatId = chatId.substring(1); // Удаление символа @ в начале
|
|
|
107 |
{title:"Имя", field:"name"},
|
108 |
{title:"Телефон", field:"phone"},
|
109 |
{title:"Email", field:"email"},
|
110 |
+
{title:"Ссылка на VK", field:"vk_id, formatter: function(cell, formatterParams, onRendered) {
|
111 |
+
var phone = cell.getValue();
|
112 |
+
return `<a href="https://vk.comvk.me/id${vk_id}" target="_blank">${phone}</a>`;
|
113 |
+
}},
|
114 |
+
{title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
|
115 |
var chatId = cell.getValue();
|
116 |
if (chatId.startsWith('@')) {
|
117 |
chatId = chatId.substring(1); // Удаление символа @ в начале
|