(label, callback, enabled = true)
| 128 | }); |
| 129 | |
| 130 | const action = (label, callback, enabled = true) => { |
| 131 | const button = document.createElement('button'); |
| 132 | button.type = 'button'; |
| 133 | button.className = 'button analyticsSecondary'; |
| 134 | button.textContent = label; |
| 135 | button.disabled = !enabled; |
| 136 | button.addEventListener('click', callback); |
| 137 | return button; |
| 138 | }; |
| 139 | const choose = (key, parts, value, parent) => { |
| 140 | const label = document.createElement('label'); |
| 141 | label.className = 'jsonPickerValue'; |
no test coverage detected