mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
[panoramix] -> [dashed]
This commit is contained in:
23
dashed/assets/visualizations/markup.js
Normal file
23
dashed/assets/visualizations/markup.js
Normal file
@@ -0,0 +1,23 @@
|
||||
var $ = window.$ || require('jquery');
|
||||
|
||||
function markupWidget(slice) {
|
||||
|
||||
function refresh() {
|
||||
$('#code').attr('rows', '15');
|
||||
|
||||
$.getJSON(slice.jsonEndpoint(), function (payload) {
|
||||
slice.container.html(payload.data.html);
|
||||
slice.done();
|
||||
})
|
||||
.fail(function (xhr) {
|
||||
slice.error(xhr.responseText);
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
render: refresh,
|
||||
resize: refresh
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = markupWidget;
|
||||
Reference in New Issue
Block a user