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

Function createSectionIcon

js/userGuidance.js:527–537  ·  view source on GitHub ↗
(className, iconUrl)

Source from the content-addressed store, hash-verified

525 renderEnhancedDialogContent: function (contentRoot, content, options) {
526 const sectionScrollOffset = 24;
527 const createSectionIcon = function (className, iconUrl) {
528 if (!iconUrl) {
529 return null;
530 }
531
532 const icon = document.createElement('span');
533 icon.className = className;
534 icon.setAttribute('aria-hidden', 'true');
535 icon.style.setProperty('--analytics-dialog-section-icon', `url("${iconUrl}")`);
536 return icon;
537 };
538 const layout = document.createElement('div');
539 layout.className = 'analyticsEnhancedDialogLayout';
540

Callers 1

userGuidance.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected