Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
li.html(data => `
<div class="${data.excludeKey ? data.excludeKey.split(':')[0] : ''}">
${checkbox({
rightLabel: `
<span class="name">${data.label}</span>
${data.description ? `- ${data.description}` : ``}
`
}).outerHTML}
</div>
`)
.map(d => {
const elem = checkbox({
rightLabel: d.label,
checked: !this.ui.dataTree.exclude.has(d.excludeKey)
})
elem.querySelector('input').dataset.excludeKey = d.excludeKey
return elem
})
this.d3V8Combo = this.d3Center.d3Element.append(() => dropdown({
classNames: ['key-v8'],
label: checkbox({
leftLabel: 'V8',
onChange: e => {
this.setCodeAreaVisibility('all-v8', e.target.checked)
}
}),
content: getV8Children.bind(this),
expandAbove: true
}))