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.
1 parent 8157042 commit 1871f49Copy full SHA for 1871f49
src/common/vpCommon.js
@@ -69,6 +69,21 @@ define([
69
document.getElementsByTagName("head")[0].appendChild(link);
70
}
71
72
+ /**
73
+ * append css for div
74
+ * @param {string} divSelector
75
+ * @param {string} url
76
+ */
77
+ var loadCssForDiv = function(divSelector, url) {
78
+ $('<link>')
79
+ .appendTo(divSelector)
80
+ .attr({
81
+ type: 'text/css',
82
+ rel: 'stylesheet',
83
+ href: requirejs.toUrl(url)
84
+ });
85
+ }
86
+
87
/**
88
* VisualPython container selector (jquery selector)
89
* @returns vp top container selector
@@ -347,6 +362,7 @@ define([
347
362
loadHtml: loadHtml
348
363
, getUUID: getUUID
349
364
, loadCss: loadCss
365
+ , loadCssForDiv: loadCssForDiv
350
366
, getVPContainer: getVPContainer
351
367
, wrapSelector: wrapSelector
352
368
, addVariable: addVariable
0 commit comments