Skip to content

Commit

Permalink
Fix icons example
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Dec 14, 2023
1 parent 845b7e2 commit b39d2b8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion icons/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
Survey.SvgRegistry.renderIcons();
function renderIcons() {
let iconsDiv = document.createElement("div");
iconsDiv.id = "sv-icon-holder-global-container";
iconsDiv.innerHTML = "<svg>" + Survey.SvgRegistry.iconsRenderedHtml() + "</svg>";
iconsDiv.style.display = "none";
document.head.appendChild(iconsDiv);
}
renderIcons();

Object.keys(Survey.SvgRegistry.icons).map(name => {
const element = document.createElement("div");
Expand Down

0 comments on commit b39d2b8

Please sign in to comment.