mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
Moving some JS folders (#4820)
* Moving folders * Pointing to new locations
This commit is contained in:
committed by
GitHub
parent
2900ca345d
commit
c0db6dbb57
12
superset/assets/src/visualizations/iframe.js
Normal file
12
superset/assets/src/visualizations/iframe.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const $ = require('jquery');
|
||||
|
||||
function iframeWidget(slice) {
|
||||
$('#code').attr('rows', '15');
|
||||
const url = slice.render_template(slice.formData.url);
|
||||
slice.container.html('<iframe style="width:100%;"></iframe>');
|
||||
const iframe = slice.container.find('iframe');
|
||||
iframe.css('height', slice.height());
|
||||
iframe.attr('src', url);
|
||||
}
|
||||
|
||||
module.exports = iframeWidget;
|
||||
Reference in New Issue
Block a user