We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd0329c + b820389 commit c6bf940Copy full SHA for c6bf940
template/types/info.go
@@ -1671,6 +1671,10 @@ func (i *InfoPanel) AddJS(js template.JS) *InfoPanel {
1671
return i.addFooterHTML(template.HTML("<script>" + js + "</script>"))
1672
}
1673
1674
+func (i *InfoPanel) AddJSModule(js template.JS) *InfoPanel {
1675
+ return i.addFooterHTML(template.HTML("<script type='module'>" + js + "</script>"))
1676
+}
1677
+
1678
func (i *InfoPanel) addCallback(node context.Node) *InfoPanel {
1679
i.Callbacks = i.Callbacks.AddCallback(node)
1680
return i
0 commit comments