INNER CODE UNIT · TypeScript
_NodeComplex
zhenorzz/goploy · web/src/components/JSONTree/index.ts:431
function _NodeComplex(label, val, isLast) {
if (this.constructor === _NodeComplex) {
throw new Error('This is abstract class')
}
const self = this
const el = document.createElement('li')
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) {