How to use the @nearform/clinic-common/base/checkbox.js function in @nearform/clinic-common

To help you get started, we’ve selected a few @nearform/clinic-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nearform / node-clinic-flame / visualizer / filters-options.js View on Github external
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>
  `)
github nearform / node-clinic-flame / visualizer / filters-bar.js View on Github external
.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
    })
github nearform / node-clinic-flame / visualizer / filters-bar.js View on Github external
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
    }))

@nearform/clinic-common

Shared parts between the Clinic.js suite

MIT
Latest version published 4 years ago

Package Health Score

42 / 100
Full package analysis

Similar packages