INNER CODE UNIT · TypeScript
template
zhenorzz/goploy · web/src/components/JSONTree/index.ts:438
const template = function (label, sym) {
const comma = !isLast ? ',' : ''
let str = ''
str += '<div class="jsontree_value-wrapper">'
str += '<div class="jsontree_value jsontree_value_' + self.type + '">'
str += '<b>' + sym[0] + '</b>'
str += '<span class="jsontree_show-more">…</span>'
str += '<ul class="jsontree_child-nodes"></ul>'
str += '<b>' + sym[1] + '</b>'
str += '</div>' + comma + '</div>'
if (label !== null) {
let labelStr = ''
labelStr += '<span class="jsontree_label-wrapper">'
labelStr += '<span class="jsontree_label">'
labelStr +=
'<span class="jsontree_expand-button"></span>"' +
label +
'"</span> : </span>'