MCPcopy Create free account
hub / github.com/Rello/analytics / action

Function action

js/jsonPicker.js:130–138  ·  view source on GitHub ↗
(label, callback, enabled = true)

Source from the content-addressed store, hash-verified

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';

Callers 3

childrenFunction · 0.85
renderFunction · 0.85
browseFunction · 0.85

Calls 1

addEventListenerMethod · 0.45

Tested by

no test coverage detected