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

Function insertToken

js/filter.js:437–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435 const picker = document.createElement('div');
436 picker.className = 'analyticsTransformColumnChips';
437 const insertToken = token => {
438 const start = formula.selectionStart;
439 formula.setRangeText(token, start, formula.selectionEnd, 'end');
440 formula.focus();
441 formula.dispatchEvent(new Event('input', {bubbles: true}));
442 };
443 row.refreshColumnChips = () => {
444 const calculations = [...document.querySelectorAll('#transformCalculationList .analyticsTransformCalculation')]
445 .filter(other => other !== row)

Callers 1

filter.jsFile · 0.85

Calls 1

focusMethod · 0.80

Tested by

no test coverage detected